Update ProjectManager error message
This commit is contained in:
parent
9f8906fdac
commit
4dff646f5d
2 changed files with 3 additions and 3 deletions
|
@ -23,8 +23,8 @@ namespace Microsoft.DotNet.ProjectModel
|
||||||
public int Column { get; private set; }
|
public int Column { get; private set; }
|
||||||
|
|
||||||
public override string ToString()
|
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)
|
internal static FileFormatException Create(Exception exception, string filePath)
|
||||||
|
|
|
@ -122,7 +122,7 @@ namespace Microsoft.DotNet.ProjectModel.Server
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_log.LogError("Error occurs: {0}", ex.ToString());
|
_log.LogError("A unexpected exception occurred: {0}", ex.ToString());
|
||||||
|
|
||||||
var error = new ErrorMessage
|
var error = new ErrorMessage
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue