Skip to content

Commit 7151911

Browse files
committed
lint: drop trailing period from upstream patch daemon-required error
staticcheck ST1005 — error strings must not end with punctuation. Flatten the multi-line message into a single sentence so the no-trailing-period rule is easy to keep over time. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 4738610 commit 7151911

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/mcpproxy/upstream_cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2141,7 +2141,7 @@ func runUpstreamPatch(_ *cobra.Command, args []string) error {
21412141
return fmt.Errorf("failed to load config: %w", err)
21422142
}
21432143
if !shouldUseUpstreamDaemon(globalConfig.DataDir) {
2144-
return fmt.Errorf("mcpproxy daemon is not running — start it with `mcpproxy serve` first.\n\nThe `patch` subcommand requires a live backend so configuration changes are\napplied with full deep-merge semantics and propagated to running upstream\nconnections immediately. Editing the config file by hand only works while\nthe daemon is offline.")
2144+
return fmt.Errorf("mcpproxy daemon is not running — start it with `mcpproxy serve` first; the `patch` subcommand requires a live backend so configuration changes are applied with full deep-merge semantics and propagated to running upstream connections immediately. Editing the config file by hand only works while the daemon is offline")
21452145
}
21462146
logger, err := createUpstreamLogger("warn")
21472147
if err != nil {

0 commit comments

Comments
 (0)