1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-15 09:04:04 +02:00
joplin/packages/lib/services/database/isSqliteSyntaxError.ts

5 lines
194 B
TypeScript
Raw Normal View History

// Syntax errors have a code 0 (no error) so we need to check the message.
export default (sqliteError: any) => {
return sqliteError.message && sqliteError.message.includes('syntax error');
};