Update ProjectManager error message

This commit is contained in:
Troy Dai 2016-03-01 15:18:00 -08:00
parent 9f8906fdac
commit 4dff646f5d
2 changed files with 3 additions and 3 deletions

View file

@ -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)

View file

@ -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
{