mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
Fixup for errors
This commit is contained in:
@@ -57,7 +57,7 @@ function recordDynamicCustomEvent (type, options = {}) {
|
|||||||
mobileAnalyticsClient.recordEvent(type, options)
|
mobileAnalyticsClient.recordEvent(type, options)
|
||||||
} catch (analyticsError) {
|
} catch (analyticsError) {
|
||||||
if (analyticsError instanceof ReferenceError) {
|
if (analyticsError instanceof ReferenceError) {
|
||||||
return
|
console.error(analyticsError.name + ': ' + analyticsError.message)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -70,7 +70,7 @@ function recordStaticCustomEvent () {
|
|||||||
})
|
})
|
||||||
} catch (analyticsError) {
|
} catch (analyticsError) {
|
||||||
if (analyticsError instanceof ReferenceError) {
|
if (analyticsError instanceof ReferenceError) {
|
||||||
return
|
console.error(analyticsError.name + ': ' + analyticsError.message)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ function resolveStorageNotes (storage) {
|
|||||||
notePathList = sander.readdirSync(notesDirPath)
|
notePathList = sander.readdirSync(notesDirPath)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err.code === 'ENOENT') {
|
if (err.code === 'ENOENT') {
|
||||||
|
console.error(notesDirPath, ' doesn\'t exist.')
|
||||||
sander.mkdirSync(notesDirPath)
|
sander.mkdirSync(notesDirPath)
|
||||||
} else {
|
} else {
|
||||||
console.warn('Failed to find note dir', notesDirPath, err)
|
console.warn('Failed to find note dir', notesDirPath, err)
|
||||||
|
|||||||
Reference in New Issue
Block a user