diff options
author | 2014-05-28 16:35:53 +0100 | |
---|---|---|
committer | 2014-05-28 16:35:53 +0100 | |
commit | 1664e95a6c6a83c9eacb1d5393cb19f0d9e09e1b (patch) | |
tree | 632d4f42b607c975145026d5fd3965ad39e0e950 | |
parent | 7606336bb8756b10d95ba8058711fa2810948688 (diff) | |
parent | 1041cd2aab72e0a3b13ce1325ed36433596421fb (diff) |
Merge.
-rw-r--r-- | Source/ExecutionEngine/ExecutionEngine.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/ExecutionEngine/ExecutionEngine.cs b/Source/ExecutionEngine/ExecutionEngine.cs index b8bdf894..2588c08f 100644 --- a/Source/ExecutionEngine/ExecutionEngine.cs +++ b/Source/ExecutionEngine/ExecutionEngine.cs @@ -157,7 +157,7 @@ namespace Microsoft.Boogie string s;
if (tok != null)
{
- s = string.Format("{0}({1},{2}): {3}", tok.filename, tok.line, tok.col, message);
+ s = string.Format("{0}({1},{2}): {3}", ExecutionEngine.GetFileNameForConsole(tok.filename), tok.line, tok.col, message);
}
else
{
@@ -632,9 +632,9 @@ namespace Microsoft.Boogie }
}
- private static string GetFileNameForConsole(string filename)
+ internal static string GetFileNameForConsole(string filename)
{
- return (CommandLineOptions.Clo.UseBaseNameForFileName) ? System.IO.Path.GetFileName(filename) : filename;
+ return (CommandLineOptions.Clo.UseBaseNameForFileName && !string.IsNullOrEmpty(filename) && filename != "<console>") ? System.IO.Path.GetFileName(filename) : filename;
}
|