File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -166,8 +166,10 @@ var stackUpdateCmd = &cobra.Command{
166
166
StartMsg : "Deploying.." ,
167
167
Runner : func (progress output.Progress ) error {
168
168
d , err = p .Up (progress )
169
- // Write the digest regardless of deployment errors
170
- writeDigest (proj .Name , s .Name , progress , d .Summary )
169
+ // Write the digest regardless of deployment errors if available
170
+ if d != nil {
171
+ writeDigest (proj .Name , s .Name , progress , d .Summary )
172
+ }
171
173
172
174
return err
173
175
},
@@ -224,7 +226,9 @@ nitric stack down -e aws -y`,
224
226
StartMsg : "Deleting.." ,
225
227
Runner : func (progress output.Progress ) error {
226
228
sum , err := p .Down (progress )
227
- writeDigest (proj .Name , s .Name , progress , sum )
229
+ if sum != nil {
230
+ writeDigest (proj .Name , s .Name , progress , sum )
231
+ }
228
232
return err
229
233
},
230
234
StopMsg : "Stack" ,
You can’t perform that action at this time.
0 commit comments