Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
chart-server
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bruce Flynn
chart-server
Commits
192c5a45
Commit
192c5a45
authored
6 years ago
by
Bruce Flynn
Browse files
Options
Downloads
Patches
Plain Diff
better error message on index fail
parent
5b74f5c6
Branches
main
No related tags found
No related merge requests found
Pipeline
#4070
passed with stage
Stage: push
in 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.go
+1
-1
1 addition, 1 deletion
main.go
with
1 addition
and
1 deletion
main.go
+
1
−
1
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment