From 61659865f2c6475023eb496b109f03f67601a5b4 Mon Sep 17 00:00:00 2001 From: qorg11 Date: Wed, 3 Nov 2021 14:32:30 +0100 Subject: [PATCH] die if no config file is loaded --- peertube-cli.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peertube-cli.pl b/peertube-cli.pl index 2aec97d..81b0883 100755 --- a/peertube-cli.pl +++ b/peertube-cli.pl @@ -21,7 +21,7 @@ my $time = new Time::Seconds; # Configuration my $conf_path = $ENV{PTCLIRC} || "$ENV{HOME}/.ptclirc"; -do $conf_path; +do $conf_path or die "Could not load configuration: $!"; # Prototypes