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
Bruce Flynn
chart-server
Commits
192c5a45
Commit
192c5a45
authored
Oct 03, 2018
by
Bruce Flynn
Browse files
better error message on index fail
parent
5b74f5c6
Pipeline
#4070
passed with stage
in 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
main.go
View file @
192c5a45
...
...
@@ -60,7 +60,7 @@ func handleUpload(w http.ResponseWriter, r *http.Request) {
err
=
updateIndex
()
if
err
!=
nil
{
http
Error
(
w
,
r
,
"Could not update index"
,
http
.
StatusInternalServerErro
r
)
http
Fail
(
w
,
r
,
"Could not update index"
,
er
r
)
// best-effort to remove the file if we could not update the index
os
.
Remove
(
p
)
return
...
...
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