Clearer message if adding comment to commit via api fails.
This commit is contained in:
parent
7fa80b5bd0
commit
d4b613ded7
|
@ -108,7 +108,7 @@ module API
|
|||
if note.save
|
||||
present note, with: Entities::CommitNote
|
||||
else
|
||||
not_found!
|
||||
error!("Failed to save note", 422)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue