Adjusted error formatting and bumped test version to 1.5.0.1
This commit is contained in:
parent
3bce9e85b9
commit
1243ebf9e7
@ -8,8 +8,8 @@
|
||||
<SignAssembly>True</SignAssembly>
|
||||
<StartupObject>BreCalClient.App</StartupObject>
|
||||
<AssemblyOriginatorKeyFile>..\..\misc\brecal.snk</AssemblyOriginatorKeyFile>
|
||||
<AssemblyVersion>1.5.0.0</AssemblyVersion>
|
||||
<FileVersion>1.5.0.0</FileVersion>
|
||||
<AssemblyVersion>1.5.0.1</AssemblyVersion>
|
||||
<FileVersion>1.5.0.1</FileVersion>
|
||||
<Title>Bremen calling client</Title>
|
||||
<Description>A Windows WPF client for the Bremen calling API.</Description>
|
||||
<ApplicationIcon>containership.ico</ApplicationIcon>
|
||||
|
||||
@ -1072,7 +1072,21 @@ namespace BreCalClient
|
||||
dynamic? msg = JsonConvert.DeserializeObject(m.Value);
|
||||
if (msg != null)
|
||||
{
|
||||
message = msg.message;
|
||||
if (msg.message != null)
|
||||
{
|
||||
caption = $"{caption}: {msg.message}";
|
||||
}
|
||||
|
||||
if((msg.errors != null) && msg.errors.Count > 0)
|
||||
{
|
||||
message = "";
|
||||
foreach(string error in msg.errors)
|
||||
{
|
||||
message += error;
|
||||
message += Environment.NewLine;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception) { }
|
||||
|
||||
@ -5,7 +5,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>1.5.0.0</ApplicationVersion>
|
||||
<ApplicationVersion>1.5.0.1</ApplicationVersion>
|
||||
<BootstrapperEnabled>True</BootstrapperEnabled>
|
||||
<Configuration>Debug</Configuration>
|
||||
<CreateDesktopShortcut>True</CreateDesktopShortcut>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user