hiteshchoudhary / chai-backend

A video series on chai aur code youtube channel
5.34k stars 803 forks source link

ApiError classs inherrited from error not working #162

Open TejasM6767 opened 2 months ago

TejasM6767 commented 2 months ago

throw new ApiError(400,"xyz") even we throw this ApiError on postman/broweser we get the message correct but status code 500 i tried everything but haven't fount any answers....... Screenshot (10) Screenshot (11) Screenshot (12)

TejasM6767 commented 2 months ago

ok we just need to not pass anythign in super() u can see line 11 in vscode....

AnkitBorude commented 1 month ago

please close the issue from your side