Improve reporting of derivative errors