diff --git a/src/Microsoft.DotNet.ProjectModel/FileFormatException.cs b/src/Microsoft.DotNet.ProjectModel/FileFormatException.cs index 0e9c5d11f..b65ed5ea9 100644 --- a/src/Microsoft.DotNet.ProjectModel/FileFormatException.cs +++ b/src/Microsoft.DotNet.ProjectModel/FileFormatException.cs @@ -23,8 +23,8 @@ namespace Microsoft.DotNet.ProjectModel public int Column { get; private set; } public override string ToString() - { - return string.Format("{0}({1},{2}): {3}", Path, Line, Column, base.Message); + { + return $"{Path}({Line},{Column}): Error: {base.ToString()}"; } internal static FileFormatException Create(Exception exception, string filePath) diff --git a/src/dotnet/commands/dotnet-projectmodel-server/ProjectManager.cs b/src/dotnet/commands/dotnet-projectmodel-server/ProjectManager.cs index 428f80df4..823c93d90 100644 --- a/src/dotnet/commands/dotnet-projectmodel-server/ProjectManager.cs +++ b/src/dotnet/commands/dotnet-projectmodel-server/ProjectManager.cs @@ -122,7 +122,7 @@ namespace Microsoft.DotNet.ProjectModel.Server } catch (Exception ex) { - _log.LogError("Error occurs: {0}", ex.ToString()); + _log.LogError("A unexpected exception occurred: {0}", ex.ToString()); var error = new ErrorMessage {