Hello aghanchi,
Thank you for your post. You can enable detailed error message at IIS level (If you are using IIS then) as well. Try the following:-
Internet Information Services (IIS) Manager —> Your Web Site —> Error Pages -> Edit Feature Settings -> select "Detailed errors"
Regards,
Anit Kumar