Skip to content

Commit

Permalink
improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob committed Feb 25, 2024
1 parent 5f72a2b commit 5d3e451
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/mods/csmngr.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func GetStoryFromDir(dir string) (*CustomStory, error) {
cs = makeInvalidStory(dir)
return cs, nil
}
return nil, fmt.Errorf("GetStoryFromDir: %w", err)
return nil, fmt.Errorf("GetStoryFromDir (%s): %w", dir, err)
}

cs.Dir = dir
Expand Down Expand Up @@ -66,7 +66,7 @@ func GetStoryFromDir(dir string) (*CustomStory, error) {
logger.Warn.Println(cs.Dir, err)
return cs, nil
}
return cs, fmt.Errorf("GetStoryFromDir: %w", err)
return cs, fmt.Errorf("GetStoryFromDir (%s): %w", dir, err)
}

return cs, nil
Expand Down

0 comments on commit 5d3e451

Please sign in to comment.