File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ class ServerlessStepFunctions {
6868 data : {
6969 usage : 'String data to be passed as an event to your step function' ,
7070 shortcut : 'd' ,
71- }
71+ } ,
7272 } ,
7373 } ,
7474 } ,
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ module.exports = {
168168 . then ( ( ) => {
169169 this . serverless . cli . consoleLog ( '' ) ;
170170 this . serverless . cli . log ( `Finish to deploy ${ this . options . state } step function` ) ;
171- return BbPromise . resolve ( )
171+ return BbPromise . resolve ( ) ;
172172 } ) . catch ( ( error ) => {
173173 if ( error . message . match ( / S t a t e M a c h i n e i s b e i n g d e l e t e d / ) ) {
174174 this . serverless . cli . printDot ( ) ;
Original file line number Diff line number Diff line change @@ -10,23 +10,23 @@ module.exports = {
1010
1111 return BbPromise . resolve ( ) ;
1212 } ,
13-
13+
1414 startExecution ( ) {
1515 this . serverless . cli . log ( `Start function ${ this . options . state } ...` ) ;
1616
1717 return this . provider . request ( 'StepFunctions' ,
1818 'startExecution' ,
1919 {
2020 stateMachineArn : this . stateMachineArn ,
21- input : this . options . data
21+ input : this . options . data ,
2222 } ,
2323 this . options . stage ,
2424 this . options . region )
2525 . then ( ( result ) => {
26- this . executionArn = result . executionArn
26+ this . executionArn = result . executionArn ;
2727 return BbPromise . resolve ( ) ;
2828 } ) . catch ( ( error ) => {
29- console . log ( error ) ;
29+ throw new this . serverless . classes . Error ( error . message ) ;
3030 } ) ;
3131 } ,
3232
@@ -47,8 +47,6 @@ module.exports = {
4747 this . serverless . cli . consoleLog ( result ) ;
4848 }
4949 return BbPromise . resolve ( ) ;
50- } ) . catch ( ( error ) => {
51- console . log ( error ) ;
5250 } ) ;
53- }
54- } ;
51+ } ,
52+ } ;
You can’t perform that action at this time.
0 commit comments