more debugging info for problems after sync

This commit is contained in:
zadam
2019-12-10 21:31:24 +01:00
parent 6f32d6fabe
commit c48dbb0913
3 changed files with 11 additions and 1 deletions

View File

@@ -161,6 +161,11 @@ class TreeCache {
/** @return {Promise<NoteShort>} */
async getNote(noteId, silentNotFoundError = false) {
if (noteId === 'none') {
console.log(`No 'none' note.`);
return null;
}
else if (!noteId) {
console.log(`Falsy noteId ${noteId}, returning null.`);
return null;
}