Skip to content

Commit ae02c79

Browse files
committed
NEW: Change error output message style
1 parent 5e1511f commit ae02c79

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

CliNetliteInstaller/CliNetliteInstaller.wixproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<ProductVersion>3.10</ProductVersion>
77
<ProjectGuid>f13fb7ef-d892-4229-a1eb-8b595d71d64e</ProjectGuid>
88
<SchemaVersion>2.0</SchemaVersion>
9-
<OutputName>cli-netlite-1.1.0.1</OutputName>
9+
<OutputName>cli-netlite-1.1.0.2</OutputName>
1010
<OutputType>Package</OutputType>
1111
</PropertyGroup>
1212
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">

CliNetliteInstaller/Product.wxs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<?define version="1.1.0.1"?>
2+
<?define version="1.1.0.2"?>
33
<?define UpgradeCode="a580c04f-caec-4e18-9134-c4b8f1c8f1be"?>
44
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
5-
<Product Id="712c71fd-c6f1-41a6-a634-b6d0a8769003"
5+
<Product Id="*"
66
Name="cli-netlite"
77
Language="1033"
88
Version="$(var.version)"

ClientLib/CoreClient.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected void ParseArguments(string[] args, Options typeArguments)
6060
{
6161
typeArguments.PrintHelp();
6262
foreach (var item in unrecognized)
63-
Console.WriteLine("unrecognized option: {0}", item);
63+
Console.WriteLine("ERROR: {{ 'cause': {0}}}", item);
6464
Environment.Exit(ReturnCode.ERROR_ARG);
6565
}
6666
}
@@ -172,7 +172,7 @@ protected void ArgumentExceptionHandler(Exception ex, Options options)
172172
/// <param name="options">parsed options</param>
173173
protected void OtherExceptionHandler(Exception ex, Options options)
174174
{
175-
Console.Error.WriteLine("Exception: {0}.", ex);
175+
Console.Error.WriteLine("ERROR: {{'cause': '{0}'}}", ex.Message.ToString());
176176

177177
if (options is SenderOptions || options is ReceiverOptions)
178178
{
@@ -194,7 +194,7 @@ protected void OtherExceptionHandler(Exception ex, Options options)
194194
/// <param name="e">exception</param>
195195
void UnhandledExceptionTrapper(object sender, UnhandledExceptionEventArgs ex)
196196
{
197-
Console.Error.WriteLine("Exception: {0}.", ex);
197+
Console.Error.WriteLine("ERROR: {{'cause': '{0}'}}", ex.ToString());
198198
Environment.Exit(ReturnCode.ERROR_OTHER);
199199
}
200200
#endregion

0 commit comments

Comments
 (0)