Make the error info which is thrown more useful