Skip to content

Commit

Permalink
Revision 0.26.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclairzx81 committed Mar 22, 2023
1 parent 4379e31 commit 5df81a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/trpc/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ import { TRPCError } from '@trpc/server'
export function RpcType<T extends TSchema>(schema: T) {
return (value: unknown) => {
if (Value.Check(schema, value)) return value
const { path, message } = check.Errors(value).First()!
const { path, message } = Value.Errors(schema, value).First()!
throw new TRPCError({ message: `${message} for ${path}`, code: 'BAD_REQUEST' })
}
}
Expand Down

0 comments on commit 5df81a9

Please sign in to comment.