mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
print error
This commit is contained in:
@@ -25,7 +25,7 @@ export const RoomByIdOutputDTOSchema = z.object({
|
||||
roomType: z.number(),
|
||||
members: z.array(MemberSchema),
|
||||
}),
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
export type RoomByIdMemberItemOutputDTO = z.infer<typeof MemberSchema>
|
||||
|
||||
@@ -14,7 +14,7 @@ const RoomListItemOutPutDTOSchema = z.object({
|
||||
createdAt: z.string(),
|
||||
expirationDate: z.string().nullable(), // api check
|
||||
roomType: z.number()
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
// Define the schema for the entire response
|
||||
|
||||
@@ -10,6 +10,7 @@ export function captureAndReraiseAsync(taskName: string) {
|
||||
} catch (error) {
|
||||
// Log the error along with taskName
|
||||
ColoredLoggerService.error('Capture error from', taskName, error)
|
||||
console.error(error)
|
||||
// Re-throw the same error
|
||||
return err(error) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user