Skip to content

Commit 1dc53f7

Browse files
Use feedback.Fatal to be consistent with the rest of the codebase
1 parent bdfdff6 commit 1dc53f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/cli/daemon/daemon.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func NewCommand(srv rpc.ArduinoCoreServiceServer, settings *rpc.Configuration) *
5858
})
5959
if err != nil {
6060
// Should never happen...
61-
panic("Failed to set default value for directories.builtin.libraries: " + err.Error())
61+
feedback.Fatal(i18n.Tr("Cannot set the configuration key directories.builtin.libraries: %v", err), feedback.ErrGeneric)
6262
}
6363
}
6464

@@ -75,7 +75,7 @@ func NewCommand(srv rpc.ArduinoCoreServiceServer, settings *rpc.Configuration) *
7575
})
7676
if err != nil {
7777
// Should never happen...
78-
panic("Failed to set default value for network.user_agent_ext: " + err.Error())
78+
feedback.Fatal(i18n.Tr("Cannot set the configuration key network.user_agent_ext: %v", err), feedback.ErrGeneric)
7979
}
8080
},
8181
Run: func(cmd *cobra.Command, args []string) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy