]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- fixed error message 908/head
authorArvin Schnell <aschnell@suse.de>
Wed, 22 May 2024 15:22:03 +0000 (17:22 +0200)
committerArvin Schnell <aschnell@suse.de>
Wed, 22 May 2024 15:22:03 +0000 (17:22 +0200)
client/cmd-cleanup.cc
package/snapper.changes

index cf5f0b08cabc2a9401ea7db7d7bd29f57490f742..f00d16e8e3a64c05ce409081a6ccb949e4805d53 100644 (file)
@@ -265,9 +265,11 @@ namespace snapper
            SN_THROW(OptionsException(_("Command 'cleanup' needs one arguments.")));
        }
 
-       if (!toValue(get_opts.pop_arg(), cleanup_algorithm, false))
+       const char* arg = get_opts.pop_arg();
+
+       if (!toValue(arg, cleanup_algorithm, false))
        {
-           string error = sformat(_("Unknown cleanup algorithm '%s'."), opt->second.c_str()) + '\n' +
+           string error = sformat(_("Unknown cleanup algorithm '%s'."), arg) + '\n' +
                possible_enum_values<CleanupAlgorithm>();
            SN_THROW(OptionsException(error));
        }
index ef27fd94f603ac6d2d609a2228b21613062500f8..d2590aa008126bf7140d225b087bb6b927381380 100644 (file)
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Wed May 22 17:21:18 CEST 2024 - aschnell@suse.com
+
+- fixed error message (gh#openSUSE/snapper#907)
+
 -------------------------------------------------------------------
 Thu Apr 18 15:03:31 CEST 2024 - aschnell@suse.com