mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:06:26 +08:00
DEV: Throw an error instead of a string.
This commit is contained in:
parent
e7648e2772
commit
cff57c1883
|
@ -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 =>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user