Skip to content

Commit

Permalink
remove eCollect from constant and minor verbose error handeling
Browse files Browse the repository at this point in the history
  • Loading branch information
anandsahil committed Jul 22, 2019
1 parent 07a48e9 commit cb2062a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/BankLetter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion lib/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports = class Client {
throw new Error('passphrase is requierd');

if (!keyStorage || typeof keyStorage.read !== 'function' || typeof keyStorage.write !== 'function')
throw new Error('keyStorage implemntation missing or wrong');
throw new Error('keyStorage implementation missing or wrong');

this.url = url;
this.partnerId = partnerId;
Expand Down
2 changes: 1 addition & 1 deletion lib/consts.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const packageJson = require('../package.json');

const name = 'eCollect Node Ebics Client';
const name = 'Node Ebics Client';
const { version } = packageJson;
const orderOperations = {
ini: 'INI',
Expand Down

0 comments on commit cb2062a

Please sign in to comment.