Propagate a better error message to the C api.

llvm-svn: 227934
2 files changed