diff --git a/certificates/install_darwin.go b/certificates/install_darwin.go index fc973d33..2c84d7dc 100644 --- a/certificates/install_darwin.go +++ b/certificates/install_darwin.go @@ -112,6 +112,7 @@ func InstallCertificate(cert *paths.Path) error { if len(s) != 0 { oscmd := exec.Command("osascript", "-e", "display dialog \""+s+"\" buttons \"OK\" with title \"Arduino Agent: Error installing certificates\"") _ = oscmd.Run() + _ = UninstallCertificates() return errors.New(s) } return nil