Added more useful error messages (i.e. details+line numbers)