Skip to content

Commit

Permalink
Improve unset pool error (#5198)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattnibs authored Jul 31, 2024
1 parent 236a481 commit 57a04bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/poolflags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ func (l *Flags) SetFlags(fs *flag.FlagSet) {
}

func (f *Flags) HEAD() (*lakeparse.Commitish, error) {
if f.defaultHead == "" {
return nil, errors.New(`pool and branch are unspecified
(specify with -use flag or "zed use" command)`)
}
c, err := lakeparse.ParseCommitish(f.defaultHead)
if err != nil {
return nil, err
Expand Down

0 comments on commit 57a04bd

Please sign in to comment.