Skip to content

Commit

Permalink
- better goal.yaml not found
Browse files Browse the repository at this point in the history
  • Loading branch information
aaabramov committed Nov 9, 2021
1 parent 2486011 commit 49dda0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ $ goal tf-apply --on stage
- [ ] Add "depends on" other task like switch to dev?
- [ ] Recursive dependencies
- [ ] Assertions
- [ ] ref output
- [X] ref output
- [ ] recursive assertions?
- [ ] raw CLI output -- bad pattern?
- [ ] Global aliases in `$HOME` directory?
Expand Down
5 changes: 4 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ func loadGoals() {
if goalFile != "" {
bytes, err := ioutil.ReadFile(goalFile)
if err != nil {
lib.Fatal("Failed to read goals file: %s", goalFile)
lib.Fatal("Failed to read goals file: %s\n"+
"\t- check if goal.yaml files exists in current directory\n"+
"\t- specify goal.yaml explicitly using -c flag, e.g. 'goal -c ../goal.yaml'\n"+
"\t- run 'goal init' to generate example goal.yaml file in current directory", goalFile)
}
parsed, err := lib.ParseCommands(bytes)
if err != nil {
Expand Down

0 comments on commit 49dda0e

Please sign in to comment.