Explorar el Código

fix: workflow stuck when selector is invalid

Ahmad Kholid hace 2 años
padre
commit
942911d5a6
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/content/handleSelector.js

+ 2 - 1
src/content/handleSelector.js

@@ -104,7 +104,8 @@ export default async function (
 
     return elements;
   } catch (error) {
-    console.error(error);
+    if (onError) onError(error);
+
     throw error;
   }
 }