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 {
68
68
data : {
69
69
usage : 'String data to be passed as an event to your step function' ,
70
70
shortcut : 'd' ,
71
- }
71
+ } ,
72
72
} ,
73
73
} ,
74
74
} ,
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ module.exports = {
168
168
. then ( ( ) => {
169
169
this . serverless . cli . consoleLog ( '' ) ;
170
170
this . serverless . cli . log ( `Finish to deploy ${ this . options . state } step function` ) ;
171
- return BbPromise . resolve ( )
171
+ return BbPromise . resolve ( ) ;
172
172
} ) . catch ( ( error ) => {
173
173
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 / ) ) {
174
174
this . serverless . cli . printDot ( ) ;
Original file line number Diff line number Diff line change @@ -10,23 +10,23 @@ module.exports = {
10
10
11
11
return BbPromise . resolve ( ) ;
12
12
} ,
13
-
13
+
14
14
startExecution ( ) {
15
15
this . serverless . cli . log ( `Start function ${ this . options . state } ...` ) ;
16
16
17
17
return this . provider . request ( 'StepFunctions' ,
18
18
'startExecution' ,
19
19
{
20
20
stateMachineArn : this . stateMachineArn ,
21
- input : this . options . data
21
+ input : this . options . data ,
22
22
} ,
23
23
this . options . stage ,
24
24
this . options . region )
25
25
. then ( ( result ) => {
26
- this . executionArn = result . executionArn
26
+ this . executionArn = result . executionArn ;
27
27
return BbPromise . resolve ( ) ;
28
28
} ) . catch ( ( error ) => {
29
- console . log ( error ) ;
29
+ throw new this . serverless . classes . Error ( error . message ) ;
30
30
} ) ;
31
31
} ,
32
32
@@ -47,8 +47,6 @@ module.exports = {
47
47
this . serverless . cli . consoleLog ( result ) ;
48
48
}
49
49
return BbPromise . resolve ( ) ;
50
- } ) . catch ( ( error ) => {
51
- console . log ( error ) ;
52
50
} ) ;
53
- }
54
- } ;
51
+ } ,
52
+ } ;
You can’t perform that action at this time.
0 commit comments