Improve error messages when react-tools transform fails