Removed state and ErrorResponse(Exception e) from BaseController. Added logging to catch part in Document and Envelope Controller.
This commit is contained in:
@@ -41,7 +41,8 @@ namespace EnvelopeGenerator.Web.Controllers
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
return ErrorResponse(ex);
|
||||
_logger.LogError(ex, "{Message}", ex.Message);
|
||||
return StatusCode(StatusCodes.Status500InternalServerError);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,7 +67,8 @@ namespace EnvelopeGenerator.Web.Controllers
|
||||
}
|
||||
catch(Exception ex)
|
||||
{
|
||||
return ErrorResponse(ex);
|
||||
_logger.LogError(ex, "{Message}", ex.Message);
|
||||
return StatusCode(StatusCodes.Status500InternalServerError);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user