remove eCollect from constant and minor verbose error handeling

This commit is contained in:
anandsahil
2019-07-22 17:31:24 +02:00
parent 07a48e9cc5
commit cb2062ae2f
3 changed files with 4 additions and 4 deletions

View File

@@ -63,9 +63,9 @@ module.exports = class BankLetter {
try {
fs.writeFileSync(path, letter);
console.log('Data written to file');
console.log(`Data written to file on path '${path}'`);
} catch (error) {
console.log(error);
console.error(`error while writing bank letter to path '${path}' with error ${error}`);
throw error;
}
return new Promise(resolve => resolve(true));