fix watch mode error reporting