File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
3
const configure = require ( '../lib/configure' )
4
+ const errCode = require ( 'err-code' )
4
5
5
6
/**
6
7
* @typedef {import('../types').HTTPClientExtraOptions } HTTPClientExtraOptions
@@ -12,7 +13,7 @@ module.exports = configure(api => {
12
13
* @type {KeyAPI["export"] }
13
14
*/
14
15
const exportKey = async ( name , password , options = { } ) => {
15
- throw new Error ( 'Not implemented' )
16
+ throw errCode ( new Error ( 'Not implemented' ) , 'ERR_NOT_IMPLEMENTED ')
16
17
}
17
18
18
19
return exportKey
Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
3
const configure = require ( '../lib/configure' )
4
+ const errCode = require ( 'err-code' )
4
5
5
6
/**
6
7
* @typedef {import('../types').HTTPClientExtraOptions } HTTPClientExtraOptions
@@ -12,7 +13,7 @@ module.exports = configure(api => {
12
13
* @type {KeyAPI["info"] }
13
14
*/
14
15
const info = async ( name , options = { } ) => {
15
- throw new Error ( 'Not implemented' )
16
+ throw errCode ( new Error ( 'Not implemented' ) , 'ERR_NOT_IMPLEMENTED ')
16
17
}
17
18
18
19
return info
Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
3
const configure = require ( './lib/configure' )
4
+ const errCode = require ( 'err-code' )
4
5
5
6
/**
6
7
* @typedef {import('./types').HTTPClientExtraOptions } HTTPClientExtraOptions
@@ -12,7 +13,7 @@ module.exports = configure(api => {
12
13
* @type {RootAPI["start"] }
13
14
*/
14
15
const start = async ( options = { } ) => {
15
- throw new Error ( 'Not implemented' )
16
+ throw errCode ( new Error ( 'Not implemented' ) , 'ERR_NOT_IMPLEMENTED ')
16
17
}
17
18
18
19
return start
You can’t perform that action at this time.
0 commit comments