summaryrefslogtreecommitdiff
path: root/lib/api/notes.rb
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2014-12-30 15:17:46 +0100
committerMarin Jankovski <maxlazio@gmail.com>2014-12-30 15:17:46 +0100
commit7240150c8986c7aa21d0eb3140ac9a4c7674a4d2 (patch)
tree6c992b9afd6c15605a5017d1ad2eea796d3e5d91 /lib/api/notes.rb
parented464edabeb62e35363ebadd0a5bb5ff394b6781 (diff)
downloadgitlab-ce-7240150c8986c7aa21d0eb3140ac9a4c7674a4d2.tar.gz
Forward the messages in api response.
Diffstat (limited to 'lib/api/notes.rb')
-rw-r--r--lib/api/notes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/notes.rb b/lib/api/notes.rb
index b29c054a044..b04d623c695 100644
--- a/lib/api/notes.rb
+++ b/lib/api/notes.rb
@@ -61,7 +61,7 @@ module API
if @note.valid?
present @note, with: Entities::Note
else
- not_found!
+ not_found!("Note #{@note.errors.messages}")
end
end