diff --git a/src/function.ts b/src/function.ts index ba56219..5903a8f 100644 --- a/src/function.ts +++ b/src/function.ts @@ -140,7 +140,9 @@ export function wrapSqlFunction( } catch (error) { setStr( wasm, - `Error in user defined function '${name}': ${error?.message}`, + `Error in user defined function '${name}': ${ + (error as Error)?.message + }`, (ptr) => wasm.result_error(ptr, Status.SqliteError), ); }