Index: Ringtoets/Common/src/Ringtoets.Common.Service/DesignWaterLevelCalculationService.cs =================================================================== diff -u -r0fd23ff8e68b5f0d18d344d104bc68216cb49b51 -r6c058f12138b8a73a78eacd10357d9caa81ed67d --- Ringtoets/Common/src/Ringtoets.Common.Service/DesignWaterLevelCalculationService.cs (.../DesignWaterLevelCalculationService.cs) (revision 0fd23ff8e68b5f0d18d344d104bc68216cb49b51) +++ Ringtoets/Common/src/Ringtoets.Common.Service/DesignWaterLevelCalculationService.cs (.../DesignWaterLevelCalculationService.cs) (revision 6c058f12138b8a73a78eacd10357d9caa81ed67d) @@ -141,14 +141,15 @@ designWaterLevelCalculation.SetOutput(hydraulicBoundaryLocationOutput); } - catch (HydraRingCalculationException) + catch (HydraRingCalculationException e) { if (!canceled) { string lastErrorContent = calculator.LastErrorFileContent; - log.Error(string.IsNullOrEmpty(lastErrorContent) - ? messageProvider.GetCalculationFailedUnexplainedMessage(designWaterLevelCalculation.GetName()) - : messageProvider.GetCalculationFailedMessage(designWaterLevelCalculation.GetName(), lastErrorContent)); + log.Error(!string.IsNullOrEmpty(lastErrorContent) + ? messageProvider.GetCalculationFailedMessage(designWaterLevelCalculation.GetName(), lastErrorContent) + : messageProvider.GetCalculationFailedMessage(designWaterLevelCalculation.GetName(), e.Message), + e); exceptionThrown = true; throw;