[pmg-devel] [PATCH pmg-api 1/3] fix die statement in CLI/pmgqm
Stoiko Ivanov
s.ivanov at proxmox.com
Thu Mar 19 14:02:25 CET 2020
a '\' was forgotten before the final 'n' - making the error message also
print filename and linenumber.
Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
src/PMG/CLI/pmgqm.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/PMG/CLI/pmgqm.pm b/src/PMG/CLI/pmgqm.pm
index 981dd96..0f8c4d2 100755
--- a/src/PMG/CLI/pmgqm.pm
+++ b/src/PMG/CLI/pmgqm.pm
@@ -126,7 +126,7 @@ __PACKAGE__->register_method ({
my $role = $cinfo->{local}->{type} // '-';
if (!(($role eq '-') || ($role eq 'master'))) {
- die "local node is not mastern";
+ die "local node is not master\n";
}
my $cfg = PMG::Config->new();
--
2.20.1
More information about the pmg-devel
mailing list