Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
f6e6a6be
Commit
f6e6a6be
authored
Mar 17, 2019
by
johncming
Committed by
Matt Holt
Mar 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
caddy: improve error naming (#2526)
parent
bc5df3b3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
caddy.go
caddy.go
+2
-3
No files found.
caddy.go
View file @
f6e6a6be
...
@@ -193,9 +193,8 @@ func (i *Instance) Restart(newCaddyfile Input) (*Instance, error) {
...
@@ -193,9 +193,8 @@ func (i *Instance) Restart(newCaddyfile Input) (*Instance, error) {
r
:=
recover
()
r
:=
recover
()
if
err
!=
nil
||
r
!=
nil
{
if
err
!=
nil
||
r
!=
nil
{
for
_
,
fn
:=
range
i
.
OnRestartFailed
{
for
_
,
fn
:=
range
i
.
OnRestartFailed
{
err2
:=
fn
()
if
err
:=
fn
();
err
!=
nil
{
if
err2
!=
nil
{
log
.
Printf
(
"[ERROR] Restart failed callback returned error: %v"
,
err
)
log
.
Printf
(
"[ERROR] Restart failed callback returned error: %v"
,
err2
)
}
}
}
}
if
err
!=
nil
{
if
err
!=
nil
{
...
...
Write
Preview
Markdown
is supported
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