Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- fixed error message #908

Merged
merged 1 commit into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions client/cmd-cleanup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
5 changes: 5 additions & 0 deletions package/snapper.changes
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Loading