Main.vala: Turn the initial btrfs quota error into a message if we

think we know what the error is.

The error messages aren't localized, but they may change.
This commit is contained in:
Michael Webster 2022-11-24 12:43:14 -05:00
parent 3e0b785860
commit 02240c1898

View File

@ -4107,6 +4107,10 @@ public class Main : GLib.Object{
}
if (ret_val != 0){
if (std_err.contains("not enabled")) {
log_msg("btrfs: Quotas are not enabled");
return false;
}
log_error (std_err);
log_error(_("btrfs returned an error") + ": %d".printf(ret_val));
log_error(_("Failed to query subvolume quota"));