throw "string" -> throw new Error("string"
This commit is contained in:
@@ -273,7 +273,7 @@ export default {
|
||||
vm.fetching = false;
|
||||
//We never expect there to be no data here
|
||||
if (!res.hasOwnProperty("data")) {
|
||||
throw res;
|
||||
throw new Error(res);
|
||||
}
|
||||
vm.searchResults = res.data;
|
||||
window.$gz.form.addNoSelectionItem(vm.searchResults);
|
||||
|
||||
Reference in New Issue
Block a user