Skip to content

Commit a38cb84

Browse files
committed
Improve error when basic auth credentials are not found
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
1 parent ccde259 commit a38cb84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

serve.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func Serve(ctx context.Context, handlers *types.FaaSHandlers, config *types.FaaS
4242

4343
credentials, err := reader.Read()
4444
if err != nil {
45-
log.Fatal(err)
45+
log.Fatalf("failed to read basic auth credentials: %s", err)
4646
}
4747

4848
handlers.FunctionLister = auth.DecorateWithBasicAuth(handlers.FunctionLister, credentials)

0 commit comments

Comments
 (0)