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

@@ -20,7 +20,8 @@ class ChatService {
return await api.post(
'agent/tasks/$taskId/steps', stepRequestBody.toJson());
} catch (e) {
throw Exception('Failed to execute step: $e');
// TODO: We are bubbling up the full response. Revisit this.
rethrow;
}
}