Plugin/Plang: do not use output_value() on exceptions

This commit is contained in:
Pragmatic Software 2022-06-12 19:33:53 -07:00
parent 4e0dece5b7
commit 553fdb884c
1 changed files with 1 additions and 2 deletions

View File

@ -105,7 +105,7 @@ sub cmd_plang {
$self->{output} = ""; # collect output of the embedded Plang program
eval {
my $result = $self->{plang}->interpret_string($context->{arguments});
my $result = $self->{plang}->interpret_string($context->{arguments});
# check to see if we need to append final result to output
if (defined $result->[1]) {
@ -114,7 +114,6 @@ sub cmd_plang {
};
if (my $exception = $@) {
$exception = $self->{plang}->{interpreter}->output_value($exception);
$self->{output} .= $exception;
}