Error gestion in Dev and Prod environments