mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 08:15:52 +01:00
chore(routes): fix no-explicit-any lint/ts error for catch blocks
This commit is contained in:
@@ -33,8 +33,11 @@ async function exec(req: Request) {
|
||||
executionResult: result,
|
||||
maxEntityChangeId: syncService.getMaxEntityChangeId()
|
||||
};
|
||||
} catch (e: any) {
|
||||
return { success: false, error: e.message };
|
||||
} catch (e: unknown) {
|
||||
return {
|
||||
success: false,
|
||||
error: (e instanceof Error) ? e.message : "Unknown Error"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user