Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/happy-app/sources/sync/apiSocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class ApiSocket {
if (result.ok) {
return await sessionEncryption.decryptRaw(result.result) as R;
}
throw new Error('RPC call failed');
throw new Error(`RPC call failed: ${result.error || 'unknown error'}`);
}

/**
Expand All @@ -145,7 +145,7 @@ class ApiSocket {
if (result.ok) {
return await machineEncryption.decryptRaw(result.result) as R;
}
throw new Error('RPC call failed');
throw new Error(`RPC call failed: ${result.error || 'unknown error'}`);
}

send(event: string, data: any) {
Expand Down