Skip to content

Commit 4484818

Browse files
committed
Merge pull request #467 from vdice/propogate-err-certs
fix(certs): propogate err in certs:attach/detach/remove
2 parents 7ba6255 + d1fa5d0 commit 4484818

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

client/cmd/certs.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func CertRemove(name string) error {
142142
fmt.Printf("Removing %s... ", name)
143143
quit := progress()
144144

145-
certs.Delete(c, name)
145+
err = certs.Delete(c, name)
146146

147147
quit <- true
148148
<-quit
@@ -204,7 +204,7 @@ func CertAttach(name string, domain string) error {
204204
fmt.Printf("Attaching certificate %s to domain %s... ", name, domain)
205205
quit := progress()
206206

207-
certs.Attach(c, name, domain)
207+
err = certs.Attach(c, name, domain)
208208

209209
quit <- true
210210
<-quit
@@ -227,7 +227,7 @@ func CertDetach(name string, domain string) error {
227227
fmt.Printf("Detaching certificate %s from domain %s... ", name, domain)
228228
quit := progress()
229229

230-
certs.Detach(c, name, domain)
230+
err = certs.Detach(c, name, domain)
231231

232232
quit <- true
233233
<-quit

0 commit comments

Comments
 (0)