Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
80376d04
Unverified
Commit
80376d04
authored
Nov 18, 2016
by
Vincent Petry
Browse files
Die in OCS v1.php on exception
parent
2d6112a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
ocs/v1.php
View file @
80376d04
...
@@ -65,8 +65,10 @@ try {
...
@@ -65,8 +65,10 @@ try {
}
catch
(
MethodNotAllowedException
$e
)
{
}
catch
(
MethodNotAllowedException
$e
)
{
OC_API
::
setContentType
();
OC_API
::
setContentType
();
OC_Response
::
setStatus
(
405
);
OC_Response
::
setStatus
(
405
);
exit
();
}
catch
(
Exception
$ex
)
{
}
catch
(
Exception
$ex
)
{
OC_API
::
respond
(
$ex
->
getResult
(),
OC_API
::
requestedFormat
());
OC_API
::
respond
(
$ex
->
getResult
(),
OC_API
::
requestedFormat
());
exit
();
}
}
/*
/*
...
...
Write
Preview
Supports
Markdown
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