mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-22 22:02:38 +03:00
fix: better error message handling
This commit is contained in:
1 parent
23214dc9a8
commit
5724ca346f
1 file changed
+1
-1
@@ -12,7 +12,7 @@ const selectedNodes = computed(() => {
|
|||||||
return XPathEngine.select(xpath.value, doc);
|
return XPathEngine.select(xpath.value, doc);
|
||||||
}
|
}
|
||||||
catch (e: any) {
|
catch (e: any) {
|
||||||
return e.toString();
|
return [e.toString()];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user