Check if file is provided (#1832)
This commit is contained in:
parent
c81bf555dd
commit
aa393549e6
|
@ -203,6 +203,9 @@ sub save {
|
|||
|
||||
sub restore {
|
||||
my ( $self, $file ) = @_;
|
||||
unless ($file) {
|
||||
die "No file provided. Aborting";
|
||||
}
|
||||
require IO::String;
|
||||
my $conf;
|
||||
if ( $file eq '-' ) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user