DEV: Throw an error instead of a string.

This commit is contained in:
Guo Xiang Tan 2020-08-28 11:39:17 +08:00
parent e7648e2772
commit cff57c1883
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20

View File

@ -136,8 +136,9 @@ QUnit.testStart(function(ctx) {
const error = const error =
"Unhandled request in test environment: " + path + " (" + verb + ")"; "Unhandled request in test environment: " + path + " (" + verb + ")";
window.console.error(error); window.console.error(error);
throw error; throw new Error(error);
}; };
server.checkPassthrough = request => server.checkPassthrough = request =>