Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Assignment 1
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aksel Baardsen
Assignment 1
Commits
bff44291
Commit
bff44291
authored
5 years ago
by
Aksel Baardsen
Browse files
Options
Downloads
Patches
Plain Diff
default does not print the error
parent
3afecc46
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/funcs.go
+1
-1
1 addition, 1 deletion
pkg/funcs.go
with
1 addition
and
1 deletion
pkg/funcs.go
+
1
−
1
View file @
bff44291
...
...
@@ -80,7 +80,7 @@ func HttpError(w http.ResponseWriter, err error) {
case
"404"
:
http
.
Error
(
w
,
"Not found: "
+
err
.
Error
(),
http
.
StatusNotFound
)
default
:
http
.
Error
(
w
,
"Error occurred
: "
+
err
.
Error
()
,
http
.
StatusInternalServerError
)
http
.
Error
(
w
,
"Error occurred
"
,
http
.
StatusInternalServerError
)
}
}
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