Skip to content

Commit

Permalink
fix: add proper message to promise reject message
Browse files Browse the repository at this point in the history
  • Loading branch information
swashata committed Dec 26, 2019
1 parent ec4cae1 commit 4dc499d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions e2e/wpackio.server.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ module.exports = {
open: false,
// BrowserSync ghostMode, set to false to completely disable
ghostMode: {
clicks: true,
scroll: true,
forms: true,
clicks: false,
scroll: false,
forms: false,
},
};
4 changes: 3 additions & 1 deletion packages/scripts/src/scripts/Server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,9 @@ export class Server {
// reject the previous message queue if any
if (tsMessagesReject != null) {
try {
tsMessagesReject('overridden');
tsMessagesReject(
'typecheck no longer viable or has been cancelled.'
);
} catch (e) {
// do nothing
}
Expand Down

0 comments on commit 4dc499d

Please sign in to comment.