Skip to content

Commit c5f842d

Browse files
committed
fix: return console.error
1 parent 6180813 commit c5f842d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ observer.prototype.init = function init({
8383
name
8484
}) {
8585
if (!observe || !observe.every((i) => validObserve.includes(i)))
86-
throw "please enter a valid observe";
86+
return console.error("please enter a valid observe");
8787

8888
for (let observeType of observe) {
8989
switch (observeType) {

0 commit comments

Comments
 (0)