[feature] LIV shortcut synchronise with installed BSM versions

This commit is contained in:
MathieuG-P
2023-09-13 23:41:46 +02:00
parent 825b35d164
commit 9ee036527c
7 changed files with 252 additions and 74 deletions
+7
View File
@@ -0,0 +1,7 @@
export function tryit<Return>(func: () => Return): {error: Error, result: Return} {
try {
return { error: null, result: func() };
} catch (err) {
return { error: err instanceof Error ? err : new Error(`${err}`), result: null }
}
}