File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ async function verifyConditions(pluginConfig, context) {
99
1010 try {
1111 await execScript ( pluginConfig , context ) ;
12- } catch ( err ) {
13- throw new SemanticReleaseError ( err . stdout , 'EVERIFYCONDITIONS' ) ;
12+ } catch ( error ) {
13+ throw new SemanticReleaseError ( error . stdout , 'EVERIFYCONDITIONS' ) ;
1414 }
1515}
1616
@@ -26,15 +26,16 @@ async function verifyRelease(pluginConfig, context) {
2626
2727 try {
2828 await execScript ( pluginConfig , context ) ;
29- } catch ( err ) {
30- throw new SemanticReleaseError ( err . stdout , 'EVERIFYRELEASE' ) ;
29+ } catch ( error ) {
30+ throw new SemanticReleaseError ( error . stdout , 'EVERIFYRELEASE' ) ;
3131 }
3232}
3333
3434async function generateNotes ( pluginConfig , context ) {
3535 verifyConfig ( pluginConfig ) ;
3636
37- return execScript ( pluginConfig , context ) ;
37+ const stdout = await execScript ( pluginConfig , context ) ;
38+ return stdout ;
3839}
3940
4041async function prepare ( pluginConfig , context ) {
@@ -50,9 +51,9 @@ async function publish(pluginConfig, context) {
5051
5152 try {
5253 return stdout ? parseJson ( stdout ) : undefined ;
53- } catch ( err ) {
54+ } catch ( error ) {
5455 debug ( stdout ) ;
55- debug ( err ) ;
56+ debug ( error ) ;
5657 context . logger . log (
5758 `The command ${ pluginConfig . cmd } wrote invalid JSON to stdout. The stdout content will be ignored.`
5859 ) ;
Original file line number Diff line number Diff line change 3131 "semantic-release" : " ^15.0.0" ,
3232 "sinon" : " ^6.0.0" ,
3333 "stream-buffers" : " ^3.0.2" ,
34- "xo" : " ^0.22 .0"
34+ "xo" : " ^0.23 .0"
3535 },
3636 "engines" : {
3737 "node" : " >=8.3"
You can’t perform that action at this time.
0 commit comments