We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67694ff commit 0651383Copy full SHA for 0651383
src/helpers.ffi.mjs
@@ -15,7 +15,8 @@ export function getFunctionName() {
15
const stack = error.stack ?? ''
16
const parts = stack.split('\n')
17
const end = parts.findIndex((l) => l.includes('LustreClientApplication'))
18
- const st = parts.slice(1, end).join('\n')
+ const endIndex = end === -1 ? parts.length : end
19
+ const st = parts.slice(1, endIndex).join('\n')
20
return st
21
}
22
0 commit comments