Error handle on all environment