Improve message for rebar errors, closes #2189