Add more debug on errors