Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 35ed1ef

Browse files
committed
Fix #471: Debugger console crashes with "DebuggerException: Evaluation did not return any value" when invoking a method returning void
1 parent 929fc8e commit 35ed1ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/AddIns/Debugger/Debugger.Core

src/AddIns/Debugger/Debugger.Core/Eval.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public Value Result {
7878
case EvalState.Evaluating: throw new GetValueException("Evaluating...");
7979
case EvalState.EvaluatedSuccessfully: return result;
8080
case EvalState.EvaluatedException: return result;
81-
case EvalState.EvaluatedNoResult: throw new DebuggerException("Evaluation did not return any value.");
81+
case EvalState.EvaluatedNoResult: throw new GetValueException("no result");
8282
case EvalState.EvaluatedTimeOut: throw new GetValueException("Timeout");
8383
default: throw new DebuggerException("Unknown state");
8484
}

0 commit comments

Comments
 (0)