Skip to content

Commit

Permalink
Fixed verbose messages of writeFile
Browse files Browse the repository at this point in the history
  • Loading branch information
klein0r committed Mar 14, 2024
1 parent aa15217 commit b3d9c13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sandbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -3470,7 +3470,7 @@ function sandBox(script, name, verbose, debug, context) {
_adapter = _adapter || '0_userdata.0';

if (debug) {
sandbox.log(`readFile(adapter=${_adapter}, fileName=${fileName}) - ${words._('was not executed, while debug mode is active')}`, 'warn');
sandbox.log(`writeFile(adapter=${_adapter}, fileName=${fileName}) - ${words._('was not executed, while debug mode is active')}`, 'warn');
if (typeof callback === 'function') {
setTimeout(function () {
try {
Expand All @@ -3481,7 +3481,7 @@ function sandBox(script, name, verbose, debug, context) {
}, 0);
}
} else {
sandbox.verbose && sandbox.log(`readFile(adapter=${_adapter}, fileName=${fileName})`, 'info');
sandbox.verbose && sandbox.log(`writeFile(adapter=${_adapter}, fileName=${fileName})`, 'info');
adapter.writeFile(_adapter, fileName, data, callback);
}
},
Expand Down

0 comments on commit b3d9c13

Please sign in to comment.