mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2024-11-25 15:42:07 +00:00
Merge pull request #2 from anandsahil/minorChanges
remove eCollect from constant and minor verbose error handeling
This commit is contained in:
commit
89904afa63
@ -63,9 +63,9 @@ module.exports = class BankLetter {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
fs.writeFileSync(path, letter);
|
fs.writeFileSync(path, letter);
|
||||||
console.log('Data written to file');
|
console.log(`Data written to file on path '${path}'`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.error(`error while writing bank letter to path '${path}' with error ${error}`);
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
return new Promise(resolve => resolve(true));
|
return new Promise(resolve => resolve(true));
|
||||||
|
@ -42,7 +42,7 @@ module.exports = class Client {
|
|||||||
throw new Error('passphrase is requierd');
|
throw new Error('passphrase is requierd');
|
||||||
|
|
||||||
if (!keyStorage || typeof keyStorage.read !== 'function' || typeof keyStorage.write !== 'function')
|
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.url = url;
|
||||||
this.partnerId = partnerId;
|
this.partnerId = partnerId;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
const packageJson = require('../package.json');
|
const packageJson = require('../package.json');
|
||||||
|
|
||||||
const name = 'eCollect Node Ebics Client';
|
const name = 'Node Ebics Client';
|
||||||
const { version } = packageJson;
|
const { version } = packageJson;
|
||||||
const orderOperations = {
|
const orderOperations = {
|
||||||
ini: 'INI',
|
ini: 'INI',
|
||||||
|
Loading…
Reference in New Issue
Block a user