Added Error Handling and Reporting
This commit is contained in:
@@ -120,7 +120,8 @@ namespace DataLoader
|
||||
catch (Exception ex)
|
||||
{
|
||||
log.ErrorFormat("Could not load data, error = {0}", ex.Message);
|
||||
return false;
|
||||
//return false;
|
||||
throw ex;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -186,6 +187,7 @@ namespace DataLoader
|
||||
{
|
||||
log.ErrorFormat("Bad Date/Time {0} {1}. Set to NOW.", date, time);
|
||||
log.ErrorFormat("{0}\r\n\r\n{1}", ex.Message, ex.InnerException);
|
||||
frmMain.AddError(ex, "Bad Date/Time {0} {1}", date, time);
|
||||
//log.ErrorFormat(ex.StackTrace);
|
||||
return dts;
|
||||
}
|
||||
|
Reference in New Issue
Block a user