Show helpful toast if someone hits a 404

This commit is contained in:
hunteraraujo
2023-09-28 23:43:02 -07:00
parent 88a4d1a0dd
commit 8c58df706a
8 changed files with 69 additions and 32 deletions

View File

@@ -19,7 +19,8 @@ class TaskService {
try {
return await api.post('agent/tasks', taskRequestBody.toJson());
} catch (e) {
throw Exception('Failed to create a new task: $e');
// TODO: We are bubbling up the full response. Revisit this.
rethrow;
}
}