Watch
1
0
Fork
You've already forked nexus
0
forked from Nexus/nexus

improve error handling from gomuks

This commit is contained in:
Henry Hiles 2026-07-14 16:47:07 -04:00
commit 2a4106d941
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -160,7 +160,10 @@ class ClientController extends AsyncNotifier<int> {
calloc.free(bufferPointer);
final json = response.buf.toJson();
if (json is String) throw json;
if (response.command.cast<Utf8>().toDartString() == "error") {
throw json;
}
return json;
}