Skip to content
This repository was archived by the owner on Aug 12, 2022. It is now read-only.

Commit 969f25e

Browse files
authored
make it work without config file (#68)
1 parent 9300055 commit 969f25e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/cmd/ach/ach.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ func readAppConfig() {
8383
v.AddConfigPath("/")
8484

8585
if err := v.ReadInConfig(); err != nil {
86-
log.Fatal(fmt.Errorf("failed to read app config %s: %w", absCfgFile, err))
86+
fmt.Println("note: Configfile seems not to be set.")
87+
88+
return
8789
}
8890

8991
if err := v.UnmarshalExact(&config.GlobalAppConfig); err != nil {

0 commit comments

Comments
 (0)