mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-06 00:47:09 +00:00
refactor: share bad request text
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user