Skip to content

Commit

Permalink
chore: return false on error
Browse files Browse the repository at this point in the history
  • Loading branch information
harrydowning committed Jul 5, 2024
1 parent c84f804 commit 0bedc56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ const write = (filename, data) => {
fs.writeFileSync(filename, data);
} catch (err) {
console.error(err);
return false;
}

console.log(`File '${filename}' saved.`);
Expand Down

0 comments on commit 0bedc56

Please sign in to comment.