command/sticker: return ACK_ERROR_NO_EXIST for "no such sticker"
Closes #389
This commit is contained in:
parent
b0994bad31
commit
901a48c9a4
@ -103,7 +103,7 @@ handle_sticker_song(Response &r, Partition &partition, Request args)
|
|||||||
? sticker_song_delete(*song)
|
? sticker_song_delete(*song)
|
||||||
: sticker_song_delete_value(*song, args[3]);
|
: sticker_song_delete_value(*song, args[3]);
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
r.Error(ACK_ERROR_SYSTEM, "no such sticker");
|
r.Error(ACK_ERROR_NO_EXIST, "no such sticker");
|
||||||
return CommandResult::ERROR;
|
return CommandResult::ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user