Skip to content

Commit

Permalink
Handle non-JSON-serializable result types
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveSandersonMS committed Oct 27, 2020
1 parent d431f52 commit 68053eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Server/Controllers/RunController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public async Task<ExecuteResult> EvaluateCellAsync([FromBody] ExecuteRequest cel
switch (x)
{
case DisplayEvent displayEvent:
result.Output = displayEvent.Value;
result.Output = displayEvent.Value?.ToString();
break;
case CommandFailed commandFailed:
result.CommandFailedMessage = commandFailed.Message;
Expand Down

0 comments on commit 68053eb

Please sign in to comment.