mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-06 10:20:26 +02:00
API: Target member was not found, return 404.
This commit is contained in:
parent
a6dccc753b
commit
da71c9261d
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ func (h *RoomHandler) controlGive(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
target, ok := h.sessions.Get(memberId)
|
target, ok := h.sessions.Get(memberId)
|
||||||
if !ok {
|
if !ok {
|
||||||
utils.HttpBadRequest(w, "Target member was not found.")
|
utils.HttpNotFound(w, "Target member was not found.")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue