Skip to content
Snippets Groups Projects
Commit 8a066514 authored by Janis Daniel Dähne's avatar Janis Daniel Dähne
Browse files

- more verbose logging to see more errors

parent 43393667
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ namespace ClientServer.Helpers
/// </summary>
public static class Constants
{
public static string VersionString = "2.5.2";
public static string VersionString = "2.5.3";
/// <summary>
/// this is only set once at program.cs!!
......
......@@ -37,13 +37,14 @@ namespace ClientServer.Controllers
message += " | inner exception: " + ex.InnerException.Message;
}
Console.WriteLine("[DB ERROR]: " + message);
if (AppConfiguration.IsDebugMode)
{
return
Response.WriteAsync(Jc.Serialize(new BasicResponse(ResponseCode.ServerError, message)));
}
Console.WriteLine(message);
return
Response.WriteAsync(Jc.Serialize(new BasicResponse(ResponseCode.ServerError, "server db error")));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment