Error reporting improvements. ref #105