vncserver: die without printing source code line

release/1.1.0
Dmitry Maksyoma 2 years ago
parent e5056eaeea
commit 8a9fd18228

@ -36,7 +36,7 @@ sub load {
$logger->debug("Loading config " . $self->{filename}); $logger->debug("Loading config " . $self->{filename});
my $yamlDocuments = YAML::Tiny->read($self->{filename}); my $yamlDocuments = YAML::Tiny->read($self->{filename});
unless (defined $yamlDocuments) { unless (defined $yamlDocuments) {
die "Couldn't load config: $self->{filename}. Probable reason: No newline at end of file"; die "Couldn't load config: $self->{filename}. Probable reason: No newline at end of file\n";
} }
$self->{data} = $yamlDocuments->[0]; $self->{data} = $yamlDocuments->[0];

Loading…
Cancel
Save