mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
Add the "TB ---" prefix to error and warning messages so that early
failures (e.g. failure to lock the sandbox) don't result in empty failure reports.
This commit is contained in:
parent
929b31ddab
commit
e89ab6e083
1 changed files with 2 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ sub message(@) {
|
|||
|
||||
sub warning(@) {
|
||||
|
||||
my $msg = join(' ', @_);
|
||||
my $msg = join(' ', "TB ---", @_);
|
||||
chomp($msg);
|
||||
warn("$msg\n");
|
||||
return undef;
|
||||
|
|
@ -80,7 +80,7 @@ sub warning(@) {
|
|||
|
||||
sub error(@) {
|
||||
|
||||
my $msg = join(' ', "ERROR:", @_);
|
||||
my $msg = join(' ', "TB ---", "ERROR:", @_);
|
||||
chomp($msg);
|
||||
die("$msg\n");
|
||||
return undef;
|
||||
|
|
|
|||
Loading…
Reference in a new issue