Skip to content

Commit d1fa5d0

Browse files
author
Vaughn Dice
committed
fix(certs): propogate err in certs:attach/detach/remove <non-existent-cert>/<non-existent-domain>...
...instead of ignoring and reporting misleading affirmation. Will be covered in e2e certs_test(s)... Fixes #462 Closes #462
1 parent 7ba6255 commit d1fa5d0

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)