Skip to content

Commit 0a97918

Browse files
Improve error messages when installing and uninstalling certificates
1 parent 6d48a90 commit 0a97918

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

certificates/install_darwin.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func InstallCertificate(cert *paths.Path) error {
110110
p := C.installCert(ccert)
111111
s := C.GoString(p)
112112
if len(s) != 0 {
113-
oscmd := exec.Command("osascript", "-e", "display dialog \""+s+"\" buttons \"OK\" with title \"Error installing certificates\"")
113+
oscmd := exec.Command("osascript", "-e", "display dialog \""+s+"\" buttons \"OK\" with title \"Arduino Agent: Error installing certificates\"")
114114
_ = oscmd.Run()
115115
return errors.New(s)
116116
}
@@ -124,7 +124,7 @@ func UninstallCertificates() error {
124124
p := C.uninstallCert()
125125
s := C.GoString(p)
126126
if len(s) != 0 {
127-
oscmd := exec.Command("osascript", "-e", "display dialog \""+s+"\" buttons \"OK\" with title \"Error uninstalling certificates\"")
127+
oscmd := exec.Command("osascript", "-e", "display dialog \""+s+"\" buttons \"OK\" with title \"Arduino Agent: Error uninstalling certificates\"")
128128
_ = oscmd.Run()
129129
return errors.New(s)
130130
}

0 commit comments

Comments
 (0)