Add error message to fix issue #6