You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
555 B
24 lines
555 B
const LndError = require('../../models/errors.js').LndError;
|
|
|
|
function connectionFailedError() {
|
|
return new LndError('Unable to change password', {
|
|
Error: 2,
|
|
UNKNOWN: 'Connect Failed',
|
|
code: 14,
|
|
details: 'Connect Failed'
|
|
});
|
|
}
|
|
|
|
function invalidPasswordError() {
|
|
return new LndError('Unable to change password', {
|
|
Error: 2,
|
|
UNKNOWN: 'invalid passphrase for master public key',
|
|
code: 2,
|
|
details: 'invalid passphrase for master public key'
|
|
});
|
|
}
|
|
|
|
module.exports = {
|
|
connectionFailedError,
|
|
invalidPasswordError,
|
|
};
|
|
|