Skip to content
Snippets Groups Projects
Commit 1f18e80a authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

Make RpcException errors more informative

parent b4ef7c9f
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ namespace Grpc.Core
{
private readonly Status status;
public RpcException(Status status)
public RpcException(Status status) : base(status.ToString())
{
this.status = status;
}
......
......@@ -69,5 +69,12 @@ namespace Grpc.Core
return detail;
}
}
public override string ToString()
{
return string.Format("Status(StatusCode={0}, Detail=\"{1}\")", statusCode, detail);
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment