Index: Ringtoets/Common/src/Ringtoets.Common.Service/DesignWaterLevelCalculationService.cs =================================================================== diff -u -re6e0f3a201a644070997b531763b63f19d44df0e -rc7cfd69ca9c95a190e7cc4d0f8184d0c69bbc1c2 --- Ringtoets/Common/src/Ringtoets.Common.Service/DesignWaterLevelCalculationService.cs (.../DesignWaterLevelCalculationService.cs) (revision e6e0f3a201a644070997b531763b63f19d44df0e) +++ Ringtoets/Common/src/Ringtoets.Common.Service/DesignWaterLevelCalculationService.cs (.../DesignWaterLevelCalculationService.cs) (revision c7cfd69ca9c95a190e7cc4d0f8184d0c69bbc1c2) @@ -116,15 +116,15 @@ norm, messageProvider); } - catch (HydraRingCalculationException e) + catch (HydraRingCalculationException) { if (!canceled) { string lastErrorContent = calculator.LastErrorFileContent; log.Error(string.IsNullOrEmpty(lastErrorContent) - ? messageProvider.GetCalculationFailedMessage(designWaterLevelCalculation.Name, e.Message) - : messageProvider.GetCalculationFailedMessage(designWaterLevelCalculation.Name, lastErrorContent), - e); + ? messageProvider.GetCalculationFailedMessage(designWaterLevelCalculation.Name) + : messageProvider.GetCalculationFailedWithErrorReportMessage(designWaterLevelCalculation.Name, + lastErrorContent)); exceptionThrown = true; throw; @@ -136,7 +136,8 @@ bool errorOccurred = CalculationServiceHelper.HasErrorOccurred(canceled, exceptionThrown, lastErrorFileContent); if (errorOccurred) { - log.Error(messageProvider.GetCalculationFailedMessage(designWaterLevelCalculation.Name, lastErrorFileContent)); + log.Error(messageProvider.GetCalculationFailedWithErrorReportMessage(designWaterLevelCalculation.Name, + lastErrorFileContent)); } log.InfoFormat(Resources.DesignWaterLevelCalculationService_Calculate_Calculation_temporary_directory_can_be_found_on_location_0, calculator.OutputDirectory);