return more information on error