From f586fc6c1e49e55114ef7c7a6750c9158db406d1 Mon Sep 17 00:00:00 2001 From: SleepWalker Date: Wed, 29 Mar 2017 07:41:51 +0300 Subject: [PATCH] Add more clear error message for errors logged from bsod --- src/components/ui/bsod/BsodMiddleware.js | 2 +- tests/components/ui/bsod/BsodMiddleware.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ui/bsod/BsodMiddleware.js b/src/components/ui/bsod/BsodMiddleware.js index a38f7f7..a2ada3b 100644 --- a/src/components/ui/bsod/BsodMiddleware.js +++ b/src/components/ui/bsod/BsodMiddleware.js @@ -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); diff --git a/tests/components/ui/bsod/BsodMiddleware.test.js b/tests/components/ui/bsod/BsodMiddleware.test.js index 50bb800..87ed3bd 100644 --- a/tests/components/ui/bsod/BsodMiddleware.test.js +++ b/tests/components/ui/bsod/BsodMiddleware.test.js @@ -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} ]); });