There was an error while loading. Please reload this page.
1 parent 4927bae commit 9cb4908Copy full SHA for 9cb4908
1 file changed
settings/config.go
@@ -10,7 +10,6 @@ package settings
10
*/
11
12
import (
13
- "fmt"
14
"os"
15
"os/exec"
16
"path/filepath"
@@ -37,10 +36,10 @@ type Config struct {
37
36
func GetApxDefaultConfig() (*Config, error) {
38
config, err := conf.NewBuilder[Config]("apx").
39
WithType("json").
+ WithOptional(true).
40
Build()
41
if err != nil {
42
- fmt.Printf("Unable to read config file: \n\t%s\n", err)
43
- os.Exit(1)
+ return nil, err
44
}
45
46
distroboxPath := config.DistroboxPath
0 commit comments