Bug fix: Error reporting (Issue #225)