IO-797 Add fault tolerance for scanning.

This commit is contained in:
Patrick Fic
2021-03-24 11:01:43 -07:00
parent 1f6d0abe21
commit de14a8c4ac
4 changed files with 104 additions and 78 deletions

View File

@@ -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));