diff --git a/README.md b/README.md index c6948ec..7f84dcc 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,11 @@ editor.read(filePath) matter.data = data; }) .show() - .save(destPath, {postfix:'new'}); + .save(destPath, {postfix:'new'}, (err) => { + if (err) { + console.log('could not save', err); + } + }); ``` ## front-matter-editor methods