1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-06 23:56:13 +02:00
Files
joplin/packages/lib/services/database/isSqliteSyntaxError.ts
2024-04-05 12:16:49 +01:00

6 lines
293 B
TypeScript

// Syntax errors have a code 0 (no error) so we need to check the message.
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
export default (sqliteError: any) => {
return sqliteError.message && sqliteError.message.includes('syntax error');
};