This should show
- the statement that failed
- the file and line number
I implemented this for CUDA failures in https://github.com/apache/arrow/pull/985 and I really like it. If we add glog to our toolchain we may be able to get full stack traces on failures.
It would probably increase code size to much in release builds, so it should be a DEBUG only feature.