mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 22:14:28 +01:00
Show helpful toast if someone hits a 404
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user