diff options
| author | Alex Denisov <1101.debian@gmail.com> | 2012-09-10 10:41:46 +0300 |
|---|---|---|
| committer | Alex Denisov <1101.debian@gmail.com> | 2012-09-10 10:41:46 +0300 |
| commit | 915dac0055cd801c080ebcd37749f4fc6d2d12c4 (patch) | |
| tree | 1de457b9c3d95d98051432d4686f89f981429ccb /lib/api/milestones.rb | |
| parent | a839cb427cc158330297fd89fbf40321d41349a4 (diff) | |
| download | gitlab-ce-915dac0055cd801c080ebcd37749f4fc6d2d12c4.tar.gz | |
Error throwing moved to api_helper
Diffstat (limited to 'lib/api/milestones.rb')
| -rw-r--r-- | lib/api/milestones.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/milestones.rb b/lib/api/milestones.rb index 7c68466760f..4b0424ba444 100644 --- a/lib/api/milestones.rb +++ b/lib/api/milestones.rb @@ -45,7 +45,7 @@ module Gitlab if @milestone.save present @milestone, with: Entities::Milestone else - error!({'message' => '404 Not found'}, 404) + not_found! end end @@ -74,7 +74,7 @@ module Gitlab if @milestone.update_attributes(parameters) present @milestone, with: Entities::Milestone else - error!({'message' => '404 Not found'}, 404) + not_found! end end end |
