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
memoriav
Memobase 2020
services
Streaming Server
Commits
5d68f129
Commit
5d68f129
authored
Jun 22, 2020
by
Jürgen Enge
Browse files
correction of error message
parent
abfe9e57
Pipeline
#10418
passed with stages
in 5 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pkg/memostream/memoServerHandlerMain.go
View file @
5d68f129
...
...
@@ -185,7 +185,7 @@ func (ms *memoServer) mainHandler(w http.ResponseWriter, req *http.Request) {
_
,
err
=
os
.
Stat
(
path
)
if
os
.
IsNotExist
(
err
)
{
// if file not exist send 404
ms
.
DoPanicf
(
w
,
http
.
StatusNotFound
,
"file not found: %
m
s"
,
path
)
ms
.
DoPanicf
(
w
,
http
.
StatusNotFound
,
"file not found: %s"
,
path
)
http
.
Error
(
w
,
err
.
Error
(),
http
.
StatusNotFound
)
return
}
else
if
err
!=
nil
{
...
...
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