diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-09-25 16:43:23 +0200 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-10-13 20:55:09 +0200 |
commit | 2d235221079ef6af90bf482a8f563dd409290751 (patch) | |
tree | 3bcd965c6f4e88302fea566fd42e50459898a6b0 /lib/api | |
parent | e261de255dfff71f5acc7d33f339a30a3cb32ab9 (diff) | |
download | gitlab-ce-2d235221079ef6af90bf482a8f563dd409290751.tar.gz |
Use :message key, not :error for File::Service.
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/files.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/api/files.rb b/lib/api/files.rb index e63e635a4d3..84e1d311781 100644 --- a/lib/api/files.rb +++ b/lib/api/files.rb @@ -85,7 +85,7 @@ module API branch_name: branch_name } else - render_api_error!(result[:error], 400) + render_api_error!(result[:message], 400) end end @@ -117,7 +117,7 @@ module API branch_name: branch_name } else - render_api_error!(result[:error], 400) + render_api_error!(result[:message], 400) end end @@ -149,7 +149,7 @@ module API branch_name: branch_name } else - render_api_error!(result[:error], 400) + render_api_error!(result[:message], 400) end end end |