Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
7240150c
Commit
7240150c
authored
Dec 30, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forward the messages in api response.
parent
ed464eda
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
lib/api/milestones.rb
lib/api/milestones.rb
+2
-2
lib/api/notes.rb
lib/api/notes.rb
+1
-1
lib/api/project_hooks.rb
lib/api/project_hooks.rb
+2
-2
lib/api/project_members.rb
lib/api/project_members.rb
+1
-1
lib/api/projects.rb
lib/api/projects.rb
+1
-1
lib/api/repositories.rb
lib/api/repositories.rb
+1
-1
No files found.
lib/api/milestones.rb
View file @
7240150c
...
@@ -48,7 +48,7 @@ module API
...
@@ -48,7 +48,7 @@ module API
if
milestone
.
valid?
if
milestone
.
valid?
present
milestone
,
with:
Entities
::
Milestone
present
milestone
,
with:
Entities
::
Milestone
else
else
not_found!
not_found!
(
"Milestone
#{
milestone
.
errors
.
messages
}
"
)
end
end
end
end
...
@@ -72,7 +72,7 @@ module API
...
@@ -72,7 +72,7 @@ module API
if
milestone
.
valid?
if
milestone
.
valid?
present
milestone
,
with:
Entities
::
Milestone
present
milestone
,
with:
Entities
::
Milestone
else
else
not_found!
not_found!
(
"Milestone
#{
milestone
.
errors
.
messages
}
"
)
end
end
end
end
end
end
...
...
lib/api/notes.rb
View file @
7240150c
...
@@ -61,7 +61,7 @@ module API
...
@@ -61,7 +61,7 @@ module API
if
@note
.
valid?
if
@note
.
valid?
present
@note
,
with:
Entities
::
Note
present
@note
,
with:
Entities
::
Note
else
else
not_found!
not_found!
(
"Note
#{
@note
.
errors
.
messages
}
"
)
end
end
end
end
...
...
lib/api/project_hooks.rb
View file @
7240150c
...
@@ -53,7 +53,7 @@ module API
...
@@ -53,7 +53,7 @@ module API
if
@hook
.
errors
[
:url
].
present?
if
@hook
.
errors
[
:url
].
present?
error!
(
"Invalid url given"
,
422
)
error!
(
"Invalid url given"
,
422
)
end
end
not_found!
not_found!
(
"Project hook
#{
@hook
.
errors
.
messages
}
"
)
end
end
end
end
...
@@ -82,7 +82,7 @@ module API
...
@@ -82,7 +82,7 @@ module API
if
@hook
.
errors
[
:url
].
present?
if
@hook
.
errors
[
:url
].
present?
error!
(
"Invalid url given"
,
422
)
error!
(
"Invalid url given"
,
422
)
end
end
not_found!
not_found!
(
"Project hook
#{
@hook
.
errors
.
messages
}
"
)
end
end
end
end
...
...
lib/api/project_members.rb
View file @
7240150c
...
@@ -9,7 +9,7 @@ module API
...
@@ -9,7 +9,7 @@ module API
if
errors
[
:access_level
].
any?
if
errors
[
:access_level
].
any?
error!
(
errors
[
:access_level
],
422
)
error!
(
errors
[
:access_level
],
422
)
end
end
not_found!
not_found!
(
errors
)
end
end
end
end
...
...
lib/api/projects.rb
View file @
7240150c
...
@@ -227,7 +227,7 @@ module API
...
@@ -227,7 +227,7 @@ module API
render_api_error!
(
"Project already forked"
,
409
)
render_api_error!
(
"Project already forked"
,
409
)
end
end
else
else
not_found!
not_found!
(
"Source Project"
)
end
end
end
end
...
...
lib/api/repositories.rb
View file @
7240150c
...
@@ -133,7 +133,7 @@ module API
...
@@ -133,7 +133,7 @@ module API
env
[
'api.format'
]
=
:binary
env
[
'api.format'
]
=
:binary
present
data
present
data
else
else
not_found!
not_found!
(
'File'
)
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment