Neon
Neon
TtRPC
Created by Neon on 2/9/2024 in #❓-help
Mock form data middleware (
Hello @DxD , no i stoped searching for the moment, i will probably try to find a way later, its not very critical for now.
7 replies
TtRPC
Created by Neon on 2/9/2024 in #❓-help
Mock form data middleware (
yep exactly
7 replies
TtRPC
Created by Neon on 11/26/2022 in #❓-help
Throw custom TRPCError with specific cause
Ok, i find the problem, cause has to be an Error so i replace the code with this:
throw new TRPCError({
message: 'Password changed too recently',
code: 'BAD_REQUEST',
cause: Error("You can only modify your password once a day", { cause: 'VALIDATION_ERROR' }),
});
throw new TRPCError({
message: 'Password changed too recently',
code: 'BAD_REQUEST',
cause: Error("You can only modify your password once a day", { cause: 'VALIDATION_ERROR' }),
});
4 replies