We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df12cc1 commit 1991874Copy full SHA for 1991874
cmd/serv.go
@@ -143,6 +143,12 @@ func runServ(c *cli.Context) error {
143
return nil
144
}
145
146
+ defer func() {
147
+ if err := recover(); err != nil {
148
+ fail(ctx, "Internal Server Error", "Panic: %v", err)
149
+ }
150
+ }()
151
+
152
keys := strings.Split(c.Args().First(), "-")
153
if len(keys) != 2 || keys[0] != "key" {
154
return fail(ctx, "Key ID format error", "Invalid key argument: %s", c.Args().First())
0 commit comments