mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-27 23:40:28 +05:30
Add more clear error message for errors logged from bsod
This commit is contained in:
parent
158a7baec5
commit
f586fc6c1e
@ -10,7 +10,7 @@ export default function BsodMiddleware(dispatchBsod, logger) {
|
||||
) {
|
||||
dispatchBsod();
|
||||
|
||||
logger.warn('Unexpected response', {resp});
|
||||
logger.warn('Unexpected response (BSoD)', {resp});
|
||||
}
|
||||
|
||||
return Promise.reject(resp);
|
||||
|
@ -19,7 +19,7 @@ describe('BsodMiddleware', () => {
|
||||
.then(() => {
|
||||
expect(dispatch, 'was called');
|
||||
expect(logger.warn, 'to have a call satisfying', [
|
||||
'Unexpected response',
|
||||
'Unexpected response (BSoD)',
|
||||
{resp}
|
||||
]);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user