mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-29 16:30:54 +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();
|
dispatchBsod();
|
||||||
|
|
||||||
logger.warn('Unexpected response', {resp});
|
logger.warn('Unexpected response (BSoD)', {resp});
|
||||||
}
|
}
|
||||||
|
|
||||||
return Promise.reject(resp);
|
return Promise.reject(resp);
|
||||||
|
@ -19,7 +19,7 @@ describe('BsodMiddleware', () => {
|
|||||||
.then(() => {
|
.then(() => {
|
||||||
expect(dispatch, 'was called');
|
expect(dispatch, 'was called');
|
||||||
expect(logger.warn, 'to have a call satisfying', [
|
expect(logger.warn, 'to have a call satisfying', [
|
||||||
'Unexpected response',
|
'Unexpected response (BSoD)',
|
||||||
{resp}
|
{resp}
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user