Minor error reporting improvement