From 1ae6ed9c10e20bb855bb66b9b75e8199a706cd22 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 14 Feb 2013 06:52:43 -0800 Subject: [PATCH] Use 'fatal_error' to report issues with params and .conf. Signed-off-by: Tom Eastep --- Shorewall/lib.cli-std | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Shorewall/lib.cli-std b/Shorewall/lib.cli-std index 8811149ed..275c1fc89 100644 --- a/Shorewall/lib.cli-std +++ b/Shorewall/lib.cli-std @@ -57,12 +57,10 @@ get_config() { if [ -r $config ]; then . $config else - echo "Cannot read $config! (Hint: Are you root?)" >&2 - exit 1 + fatal_error "Cannot read $config! (Hint: Are you root?)" fi else - echo "$config does not exist!" >&2 - exit 2 + fatal_error "$config does not exist!" fi ensure_config_path