brrd / abricotine

Markdown editor with inline preview
GNU General Public License v3.0
2.63k stars 159 forks source link

Crash on close #256

Closed fimdomeio closed 5 years ago

fimdomeio commented 5 years ago

Hello Just downloaded Abricotine yesterday. On close I got this message:

Uncaught Exception: AssertionError [ERR_ASSERTION]: rimraf: callback function required at rimraf (/Applications/Abricotine.app/Contents/Resources/app.asar/node_modules/rimraf/rimraf.js:51:10) at Object.rm (/Applications/Abricotine.app/Contents/Resources/app.asar/app/files.js:123:9) at AbrApplication.emptyTmpHTML (/Applications/Abricotine.app/Contents/Resources/app.asar/app/abr-application.js:146:15) at App. (/Applications/Abricotine.app/Contents/Resources/app.asar/app/index.js:51:12) at App.emit (events.js:187:15)

Thank you for this piece of software. I see it becoming very handy.

brrd commented 5 years ago

Good catch! files.rm() should provide a default callback such as:

callback = callback || console.error;