Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1dc53f7

Browse filesBrowse files
Use feedback.Fatal to be consistent with the rest of the codebase
1 parent bdfdff6 commit 1dc53f7
Copy full SHA for 1dc53f7

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎internal/cli/daemon/daemon.go

Copy file name to clipboardExpand all lines: internal/cli/daemon/daemon.go
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.