summaryrefslogtreecommitdiffstats
path: root/lib/App/REPL/Plugin/Defaults.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/App/REPL/Plugin/Defaults.pm')
-rw-r--r--lib/App/REPL/Plugin/Defaults.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/App/REPL/Plugin/Defaults.pm b/lib/App/REPL/Plugin/Defaults.pm
index f2b4705..28eb346 100644
--- a/lib/App/REPL/Plugin/Defaults.pm
+++ b/lib/App/REPL/Plugin/Defaults.pm
@@ -23,6 +23,14 @@ sub evaluate {
return eval $line;
}
+sub print_error {
+ my $self = shift;
+ my ($next, $error) = @_;
+
+ print $error, "\n"
+ if defined $error;
+}
+
sub print_result {
my $self = shift;
my ($next, $result) = @_;