Added debug on erro/warning