mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:36:42 +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 =
|
||||
"Unhandled request in test environment: " + path + " (" + verb + ")";
|
||||
|
||||
window.console.error(error);
|
||||
throw error;
|
||||
throw new Error(error);
|
||||
};
|
||||
|
||||
server.checkPassthrough = request =>
|
||||
|
|
Loading…
Reference in New Issue
Block a user