We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77afb96 commit 5af438fCopy full SHA for 5af438f
src/rabbit_control.erl
@@ -371,14 +371,19 @@ action(report, Node, _Args, _Opts, Inform) ->
371
ok;
372
373
action(eval, Node, [Expr], _Opts, _Inform) ->
374
- {ok, Scanned, _} = erl_scan:string(Expr),
375
- case erl_parse:parse_exprs(Scanned) of
376
- {ok, Parsed} ->
377
- {value, Value, _} = unsafe_rpc(Node, erl_eval, exprs, [Parsed, []]),
378
- io:format("~p~n", [Value]),
379
- ok;
380
- {error, {1, erl_parse, Err}} ->
381
- {error, Err}
+ case erl_scan:string(Expr) of
+ {ok, Scanned, _} ->
+ case erl_parse:parse_exprs(Scanned) of
+ {ok, Parsed} ->
+ {value, Value, _} = unsafe_rpc(
+ Node, erl_eval, exprs, [Parsed, []]),
+ io:format("~p~n", [Value]),
+ ok;
382
+ {error, {1, erl_parse, Err}} ->
383
+ {error, Err}
384
+ end;
385
+ {error, {1, erl_scan, E}, _} ->
386
+ {error, ["scan error: ", E]}
387
end.
388
389
%%----------------------------------------------------------------------------
0 commit comments