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
Łukasz Nowak
caddy
Commits
c5524b0b
Commit
c5524b0b
authored
Aug 17, 2016
by
Matthew Holt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Report errors when loading Caddyfile
parent
c5aa5843
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
plugins.go
plugins.go
+5
-4
No files found.
plugins.go
View file @
c5524b0b
...
...
@@ -271,13 +271,14 @@ func loadCaddyfileInput(serverType string) (Input, error) {
var
loadedBy
string
var
caddyfileToUse
Input
for
_
,
l
:=
range
caddyfileLoaders
{
if
cdyfile
,
err
:=
l
.
loader
.
Load
(
serverType
);
cdyfile
!=
nil
{
cdyfile
,
err
:=
l
.
loader
.
Load
(
serverType
)
if
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"loading Caddyfile via %s: %v"
,
l
.
name
,
err
)
}
if
cdyfile
!=
nil
{
if
caddyfileToUse
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"Caddyfile loaded multiple times; first by %s, then by %s"
,
loadedBy
,
l
.
name
)
}
if
err
!=
nil
{
return
nil
,
err
}
loaderUsed
=
l
caddyfileToUse
=
cdyfile
loadedBy
=
l
.
name
...
...
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