Skip to content

Commit f87e02a

Browse files
committed
[jnimarshalmethod-gen] Use {Environment.NewLine} in the messages
To look better in Windows environments.
1 parent 64d370b commit f87e02a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

external/cecil

Submodule cecil updated from b6c50e3 to 76ffcda

tools/jnimarshalmethod-gen/App.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ void LoadProfile (string profilePath)
132132
typeNameRegexes.Add (new Regex (line));
133133
}
134134
} catch (Exception e) {
135-
Error ($"Unable to read profile '{profilePath}'.\n{e}");
135+
Error ($"Unable to read profile '{profilePath}'.{Environment.NewLine}{e}");
136136
Environment.Exit (4);
137137
}
138138
}
@@ -174,7 +174,7 @@ void ProcessAssemblies (List<string> assemblies)
174174
try {
175175
CreateMarshalMethodAssembly (assembly);
176176
} catch (Exception e) {
177-
Error ($"Unable to process assembly '{assembly}'\n{e.Message}\n{e}");
177+
Error ($"Unable to process assembly '{assembly}'{Environment.NewLine}{e.Message}{Environment.NewLine}{e}");
178178
Environment.Exit (1);
179179
}
180180
}
@@ -189,7 +189,7 @@ void CreateJavaVM (string jvmDllPath)
189189
try {
190190
builder.CreateJreVM ();
191191
} catch (Exception e) {
192-
Error ($"Unable to create Java VM\n{e}");
192+
Error ($"Unable to create Java VM{Environment.NewLine}{e}");
193193
Environment.Exit (3);
194194
}
195195
}

0 commit comments

Comments
 (0)