Skip to content

Commit

Permalink
feat: error toast
Browse files Browse the repository at this point in the history
  • Loading branch information
GeopJr committed Feb 20, 2024
1 parent 9ab62da commit 359c35c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Dialogs/Report.vala
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,14 @@ public class Tuba.Dialogs.Report : Adw.Window {
return true;
});

msg.exec ();
msg
.on_error ((code, message) => {
warning (@"Error while submitting report: $code $message");

// translators: the variable is an error
app.toast (_("Couldn't submit report: %s").printf (message), 0);
})
.exec ();
}

private void on_additional_info_changed () {
Expand Down

0 comments on commit 359c35c

Please sign in to comment.