mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2026-07-18 00:45:51 +00:00
vncserver: die if config wasn't loaded
This commit is contained in:
parent
797c57121a
commit
16bf937bfa
1 changed files with 6 additions and 1 deletions
|
|
@ -34,7 +34,12 @@ sub load {
|
|||
failIfConfigNotReadable($self->{filename});
|
||||
|
||||
$logger->debug("Loading config " . $self->{filename});
|
||||
$self->{data} = YAML::Tiny->read($self->{filename})->[0];
|
||||
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";
|
||||
}
|
||||
|
||||
$self->{data} = $yamlDocuments->[0];
|
||||
}
|
||||
|
||||
sub get {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue