Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Fix panic in buffalo info (#1522)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasschlueter authored and markbates committed Jan 4, 2019
1 parent 9392326 commit 7289afe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions buffalo/cmd/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ var infoCmd = &cobra.Command{
var err error
for i := 0; i < rt.NumField(); i++ {
f := rt.Field(i)
if !rv.FieldByName(f.Name).CanInterface() {
continue
}
_, err = bb.WriteString(fmt.Sprintf("%s=%v\n", f.Name, rv.FieldByName(f.Name).Interface()))
if err != nil {
return err
Expand Down

0 comments on commit 7289afe

Please sign in to comment.