Skip to content

Commit d7b2030

Browse files
author
Crhistian Ramirez
committed
better error message when hook fails to look up model
1 parent dd9f45e commit d7b2030

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

codegen/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function inspectModelForTypeParams(
190190
return model.name === prop.type || model.type === prop.type
191191
})
192192
if (!toInspect) {
193-
throw new Error('Unable to find next model to inspect')
193+
throw new Error(`Unable to find next model to inspect for ${prop.type}`)
194194
}
195195
if (!rootProp && !parentProp) {
196196
inspectModelForTypeParams(allModels, rootModel, toInspect, prop)

0 commit comments

Comments
 (0)