summaryrefslogtreecommitdiffstats
path: root/app/command.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/command.go')
-rw-r--r--app/command.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/command.go b/app/command.go
index 188729ad5..05a4c9158 100644
--- a/app/command.go
+++ b/app/command.go
@@ -312,6 +312,7 @@ func GetCommand(commandId string) (*model.Command, *model.AppError) {
}
if result := <-Srv.Store.Command().Get(commandId); result.Err != nil {
+ result.Err.StatusCode = http.StatusNotFound
return nil, result.Err
} else {
return result.Data.(*model.Command), nil