Removing duplicated lines

This commit is contained in:
2025-06-19 23:28:28 +02:00
parent e1d1381a5c
commit 63fab9d827
5 changed files with 23 additions and 77 deletions

View File

@@ -43,12 +43,7 @@ namespace BasicDotnetTemplate.MainProject.Controllers
}
catch (Exception exception)
{
var message = this._somethingWentWrong;
if (!String.IsNullOrEmpty(exception.Message))
{
message += $". {exception.Message}";
}
return InternalServerError(message);
return InternalServerError(exception);
}
}