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

@@ -166,9 +166,9 @@ class ChatViewModel with ChangeNotifier {
}
print("Chats added for task ID: $_currentTaskId");
} catch (error) {
// TODO: Bubble up errors to UI
print("Error sending chat: $error");
} catch (e) {
// TODO: We are bubbling up the full response. Revisit this.
rethrow;
// TODO: Handle additional error scenarios or log them as required
} finally {
_isWaitingForAgentResponse = false;