refactor: share bad request text

This commit is contained in:
2025-11-23 13:09:45 +01:00
parent c95ce4bde4
commit fa851eb51d
2 changed files with 7 additions and 6 deletions
+2
View File
@@ -16,6 +16,8 @@ type ErrorResponse struct {
Description string `json:"description"`
}
var BadRequestDescription string = "Request uses invalid JSON syntax or does not follow request schema."
func RunShellCommand(cmd *exec.Cmd) CommandResponse {
var stdout, stderr bytes.Buffer
cmd.Stdout = &stdout