Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Commit

Permalink
use flaeg.ErrParserNotFound
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin committed Aug 1, 2016
1 parent 22fb341 commit 6886420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion staert.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (ts *TomlSource) Parse(cmd *flaeg.Command) (*flaeg.Command, error) {
// fmt.Println(flaegArgs)
err = flaeg.Load(cmd.Config, cmd.DefaultPointersConfig, flaegArgs)
//if err!= missing parser err
if err != nil && !strings.Contains(err.Error(), "No parser for type") {
if err != nil && err != flaeg.ErrParserNotFound {
return nil, err
}
return cmd, nil
Expand Down

0 comments on commit 6886420

Please sign in to comment.