diff options
Diffstat (limited to 'scripts/VyattaConfigOutput.pm')
-rwxr-xr-x | scripts/VyattaConfigOutput.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/VyattaConfigOutput.pm b/scripts/VyattaConfigOutput.pm index 861316a..5f92c15 100755 --- a/scripts/VyattaConfigOutput.pm +++ b/scripts/VyattaConfigOutput.pm @@ -283,8 +283,10 @@ sub outputNewConfig { if (defined($config->existsOrig()) && !defined($config->exists())) { # this is a deleted node print 'Configuration under "' . (join ' ', @_) . "\" has been deleted\n"; + } elsif (!defined($config->getTmplPath(\@_))) { + print "Specified configuration path is not valid\n"; } else { - print "Current configuration is empty\n"; + print 'Configuration under "' . (join ' ', @_) . "\" is empty\n"; } } } |