Skip to content

Commit

Permalink
better openrpc gen error
Browse files Browse the repository at this point in the history
  • Loading branch information
jchappelow committed Dec 17, 2024
1 parent 529d491 commit 8919708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/services/jsonrpc/openrpc/reflect.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,6 @@ func reflectTypeInfo(t reflect.Type, knownSchemas map[reflect.Type]Schema) Schem
return schema

default:
panic(t.Kind())
panic(fmt.Sprintf("unsupported type for OpenRPC spec generation: %v", t.Kind()))
}
}

0 comments on commit 8919708

Please sign in to comment.