File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -110,16 +110,16 @@ func CmdPlease(c *cli.Context) (err error) {
110
110
EnvironmentURL : refString (environmentURL ),
111
111
//AutoInactive: refBool(true),
112
112
})
113
- if err != nil {
114
- log .Println ("updateStatus:" , err )
115
- }
116
113
return err
117
114
}
118
115
119
116
// Start deploy script
120
117
err = cmd .Start ()
121
118
if err != nil {
122
- updateStatus (StateError , "" )
119
+ err2 := updateStatus (StateError , "" )
120
+ if err2 != nil {
121
+ log .Println ("updateStatus:" , err )
122
+ }
123
123
return err
124
124
}
125
125
@@ -132,13 +132,16 @@ func CmdPlease(c *cli.Context) (err error) {
132
132
// Wait on the deploy to finish
133
133
err = cmd .Wait ()
134
134
if err != nil {
135
- updateStatus (StateFailure , "" )
135
+ err2 := updateStatus (StateFailure , "" )
136
+ if err2 != nil {
137
+ log .Println ("updateStatus:" , err )
138
+ }
136
139
return err
137
140
}
138
141
139
142
// Success!
140
143
out := strings .SplitN (stdout .String (), "\n " , 2 )
141
- environmentURL := out [0 ]
144
+ environmentURL := strings . TrimSpace ( out [0 ])
142
145
err = updateStatus (StateSuccess , environmentURL )
143
146
return err
144
147
}
You can’t perform that action at this time.
0 commit comments