IO-797 Add fault tolerance for scanning.
This commit is contained in:
@@ -171,8 +171,8 @@ namespace BodyshopPartner.Utils
|
||||
}
|
||||
catch (Exception Ex)
|
||||
{
|
||||
logger.Error(Ex, "Error encountered while processing QuickBooks requests.");
|
||||
hlog("Error encountered while processing QuickBooks requests.");
|
||||
logger.Error(Ex, "Error encountered while scanning for estimates on disk.", Ex.ToString());
|
||||
hlog("Error encountered while processing QuickBooks requests. " + Ex.Message);
|
||||
HttpResponse.Add(new ScanResponseItem() { Id = "-1", Success = false, ErrorMessage = Ex.Message });
|
||||
}
|
||||
res.WithCORS().AsText(JsonConvert.SerializeObject(HttpResponse));
|
||||
|
||||
Reference in New Issue
Block a user