mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 15:23:33 +00:00
If error is of unkown type, create and error response from it. (#289)
* If error is of unkown type, create and error response from it. * Update src/commands/send/receive.command.ts simplify error handling Co-authored-by: Oscar Hinton <oscar@oscarhinton.com> Co-authored-by: Oscar Hinton <oscar@oscarhinton.com>
This commit is contained in:
@@ -142,10 +142,9 @@ export class SendReceiveCommand extends DownloadCommand {
|
|||||||
return Response.badRequest('Bad Request');
|
return Response.badRequest('Bad Request');
|
||||||
} else if (e.statusCode === 404) {
|
} else if (e.statusCode === 404) {
|
||||||
return Response.notFound();
|
return Response.notFound();
|
||||||
} else {
|
}
|
||||||
|
}
|
||||||
return Response.error(e);
|
return Response.error(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user