vncserver: die without printing source code line

This commit is contained in:
Dmitry Maksyoma 2023-02-23 07:40:00 +13:00
parent e5056eaeea
commit 8a9fd18228

View File

@ -36,7 +36,7 @@ sub load {
$logger->debug("Loading config " . $self->{filename});
my $yamlDocuments = YAML::Tiny->read($self->{filename});
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];