mirror of
https://github.com/bitwarden/browser
synced 2025-12-23 03:33:54 +00:00
Fix reporting of server-side errors in "bw sync". (#6855)
Co-authored-by: SmithThe4th <gsmith@bitwarden.com>
This commit is contained in:
@@ -21,7 +21,9 @@ export class SyncCommand {
|
||||
const res = new MessageResponse("Syncing complete.", null);
|
||||
return Response.success(res);
|
||||
} catch (e) {
|
||||
return Response.error("Syncing failed: " + e.toString());
|
||||
const response = Response.error(e);
|
||||
response.message = "Syncing failed: " + response.message;
|
||||
return response;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user