update README, lots of polish
This commit is contained in:
parent
4624c56e54
commit
ce836b2d46
11 changed files with 210 additions and 121 deletions
|
|
@ -38,7 +38,7 @@ const CONFIG_FILENAME = "config.toml"
|
|||
func ReadConfig(filename string) (*Config, error) {
|
||||
cfgBytes, err := os.ReadFile(filename)
|
||||
if err != nil {
|
||||
if err == os.ErrNotExist {
|
||||
if os.IsNotExist(err) {
|
||||
return nil, nil
|
||||
}
|
||||
return nil, fmt.Errorf("failed to open file: %v", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue