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

Fix panic in buffalo info #1522

Merged
merged 1 commit into from Jan 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions buffalo/cmd/info.go
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