Unverified Commit 6f0a03c2 authored by Gavin Brown's avatar Gavin Brown
Browse files

error() now returns undef so errors can be handled using "return error(...)"

parent 4bc6c99b
...@@ -607,6 +607,7 @@ sub note { ...@@ -607,6 +607,7 @@ sub note {
sub error { sub error {
my ($fmt, @args) = @_; my ($fmt, @args) = @_;
note("Error: ".$fmt, @args); note("Error: ".$fmt, @args);
return undef;
} }
sub fatal { sub fatal {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment