When saving a note in Obsidian does not succeed (for example because the mounted drive where the notes are saved is no longer available), there is no kind of warning or anything.
The developer console showed that these kind of errors were not caught:
Uncaught (in promise) Error: EBADF: bad file descriptor, open '/Path/to/test.md'
Promise.then (async)
o @ app.js:1
(anonymous) @ app.js:1
Ha @ app.js:1
ja.save @ app.js:1
callback @ app.js:1
c @ app.js:1
u.executeCommandById @ app.js:1
kn.onTrigger @ app.js:1
fn.handleKey @ app.js:1
vn.onKeyEvent @ app.js:1
Uncaught (in promise) Error: ENOENT: no such file or directory, open '/Path/to/test.md'
Promise.then (async)
o @ app.js:1
(anonymous) @ app.js:1
Ha @ app.js:1
ja.save @ app.js:1
callback @ app.js:1
c @ app.js:1
u.executeCommandById @ app.js:1
kn.onTrigger @ app.js:1
fn.handleKey @ app.js:1
vn.onKeyEvent @ app.js:1
Steps to reproduce
- Open a vault on a mounted drive, e.g. an external hard drive or a virtual drive.
- Use Obsidian to create a new file, start writing in it. (Everything works fine so far and the note will be saved properly.)
- Keep that note in Obsidian open but eject the drive. Now, you can still type in that file, hit cmd+s or even close the vault without any message that saving this file has failed.
Environment
- Operating system: Mac OS 10.15.5
- Obsidian version: v0.7.3