From 124f304b7d133ecc5969b9063e5b026368403351 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 2 Apr 2017 14:01:06 +0200 Subject: Standardize error level for functions in main package Signed-off-by: Florian Pritz --- lib/App/BorgRestore.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/App/BorgRestore.pm b/lib/App/BorgRestore.pm index d5901c1..18f6d8a 100644 --- a/lib/App/BorgRestore.pm +++ b/lib/App/BorgRestore.pm @@ -113,8 +113,8 @@ sub resolve_relative_path { my $abs_path = abs_path($canon_path); if (!defined($abs_path)) { - $log->fatalf("Failed to resolve path to absolute path: %s: %s", $canon_path, $!); - $log->fatal("Make sure that all parts of the path, except the last one, exist."); + $log->errorf("Failed to resolve path to absolute path: %s: %s", $canon_path, $!); + $log->error("Make sure that all parts of the path, except the last one, exist."); croak "Path resolving failed"; } @@ -157,7 +157,7 @@ sub find_archives { } if (!@ret) { - $log->warningf("Path '%s' not found in any archive.\n", $path); + $log->errorf("Path '%s' not found in any archive.\n", $path); croak "Failed to find archives for path"; } -- cgit v1.2.3-24-g4f1b