summaryrefslogtreecommitdiff
path: root/lib/api/files.rb
diff options
context:
space:
mode:
authorMarin Jankovski <maxlazio@gmail.com>2014-12-30 14:29:55 +0100
committerMarin Jankovski <maxlazio@gmail.com>2014-12-30 14:29:55 +0100
commited464edabeb62e35363ebadd0a5bb5ff394b6781 (patch)
treebb1dd698035e1887d2979fd6e51b6219a3a79e15 /lib/api/files.rb
parentd4b613ded728bbd45e5d67e5af555d661581ecf0 (diff)
downloadgitlab-ce-ed464edabeb62e35363ebadd0a5bb5ff394b6781.tar.gz
Message for api files and groups.
Diffstat (limited to 'lib/api/files.rb')
-rw-r--r--lib/api/files.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/files.rb b/lib/api/files.rb
index 84e1d311781..e6e71bac367 100644
--- a/lib/api/files.rb
+++ b/lib/api/files.rb
@@ -35,7 +35,7 @@ module API
file_path = attrs.delete(:file_path)
commit = user_project.repository.commit(ref)
- not_found! "Commit" unless commit
+ not_found! 'Commit' unless commit
blob = user_project.repository.blob_at(commit.sha, file_path)
@@ -53,7 +53,7 @@ module API
commit_id: commit.id,
}
else
- render_api_error!('File not found', 404)
+ not_found! 'File'
end
end