config file not found

This commit is contained in:
zu1k
2020-08-20 20:32:03 +08:00
parent 70dea95241
commit 023de15f0e
2 changed files with 2 additions and 2 deletions

View File

@@ -12,6 +12,5 @@ FROM alpine:latest
RUN apk add --no-cache ca-certificates
WORKDIR /proxypool-src
COPY ./assets /proxypool-src/assets
COPY ./source.yaml /proxypool-src
COPY --from=builder /proxypool /proxypool-src/
ENTRYPOINT ["/proxypool-src/proxypool"]

View File

@@ -59,7 +59,8 @@ func initConfigFile(path string) {
} else {
err := app.InitConfigAndGetters(configFilePath)
if err != nil {
panic(err)
fmt.Errorf("Config file not found")
os.Exit(2)
}
}
}