Improve software error reporting