Commit 25d44893 authored by priit's avatar priit
Browse files

todo fix

parent 1615ade8
...@@ -93,7 +93,7 @@ function SessionService() { ...@@ -93,7 +93,7 @@ function SessionService() {
fs.writeFile(filePath, value, function (err) { fs.writeFile(filePath, value, function (err) {
if (err) { if (err) {
logger.error(err); logger.error(err);
throw new Error('File write failed'); callback('File write failed');
} }
logger.debug('File is written'); logger.debug('File is written');
callback(null, filePath); callback(null, filePath);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment