diff options
Diffstat (limited to 'app/command.go')
-rw-r--r-- | app/command.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/command.go b/app/command.go index 188729ad5..2af934710 100644 --- a/app/command.go +++ b/app/command.go @@ -1,4 +1,4 @@ -// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved. +// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. // See License.txt for license information. package app @@ -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 |