Skip to content

Commit

Permalink
Improve error messages when installing and uninstalling certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoPologruto committed Apr 10, 2024
1 parent 6d48a90 commit 0a97918
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions certificates/install_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func InstallCertificate(cert *paths.Path) error {
p := C.installCert(ccert)
s := C.GoString(p)
if len(s) != 0 {
oscmd := exec.Command("osascript", "-e", "display dialog \""+s+"\" buttons \"OK\" with title \"Error installing certificates\"")
oscmd := exec.Command("osascript", "-e", "display dialog \""+s+"\" buttons \"OK\" with title \"Arduino Agent: Error installing certificates\"")
_ = oscmd.Run()
return errors.New(s)
}
Expand All @@ -124,7 +124,7 @@ func UninstallCertificates() error {
p := C.uninstallCert()
s := C.GoString(p)
if len(s) != 0 {
oscmd := exec.Command("osascript", "-e", "display dialog \""+s+"\" buttons \"OK\" with title \"Error uninstalling certificates\"")
oscmd := exec.Command("osascript", "-e", "display dialog \""+s+"\" buttons \"OK\" with title \"Arduino Agent: Error uninstalling certificates\"")
_ = oscmd.Run()
return errors.New(s)
}
Expand Down

0 comments on commit 0a97918

Please sign in to comment.