Skip to content

Commit 598e5b5

Browse files
authored
Edit log to throw Exception
1 parent 445aab8 commit 598e5b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dist/vuedraggable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,11 +371,11 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
371371
Vue.component('draggable', draggable);
372372
} else {
373373
if(typeof window.Vue == "undefined") {
374-
console.error('Vue.js not found!');
374+
throw 'Vue.js not found!';
375375
}
376376

377377
if(typeof window.Sortable == "undefined") {
378-
console.error('Sortable.js not found!');
378+
throw 'Sortable.js not found!';
379379
}
380380
}
381381
})();

0 commit comments

Comments
 (0)