mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-20 21:23:08 +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);
|
||||
}
|
||||
catch (e: any) {
|
||||
return e.toString();
|
||||
return [e.toString()];
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user