Skip to content

Commit

Permalink
Fixes #480 (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdriscoll authored Mar 30, 2019
1 parent 75ed25f commit 3e14837
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 13 deletions.
41 changes: 30 additions & 11 deletions src/UniversalDashboard.MaterialUI/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/UniversalDashboard/Execution/ExecutionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public object ExecuteEndpoint(ExecutionContext context, Endpoint endpoint)
var error = ps.Streams.Error[0].Exception.Message;

foreach(var errorRecord in ps.Streams.Error) {
Log.Warn($"Error executing endpoint script. {errorRecord} {Environment.NewLine} {errorRecord.ScriptStackTrace}");
Log.Warn($"Error executing endpoint {endpoint.Name}. {errorRecord} {Environment.NewLine} {errorRecord.ScriptStackTrace}");
}

return new { Error = new Error { Message = error } };
Expand All @@ -145,7 +145,7 @@ public object ExecuteEndpoint(ExecutionContext context, Endpoint endpoint)
}
catch (Exception ex)
{
Log.Warn(ex, "Error executing endpoint script.");
Log.Warn(ex, $"Error executing endpoint {endpoint.Name}.");

return new { Error = new Error { Message = ex.Message, Location = ex.StackTrace } };
}
Expand Down

0 comments on commit 3e14837

Please sign in to comment.