diff --git a/hphp/hack/src/client/clientCheckStatus.ml b/hphp/hack/src/client/clientCheckStatus.ml index e4840edf918af3..be6f1e6b4b02b3 100644 --- a/hphp/hack/src/client/clientCheckStatus.ml +++ b/hphp/hack/src/client/clientCheckStatus.ml @@ -405,7 +405,14 @@ let watchman_get_raw_updates_since match files with | Error e -> let msg = Exception.to_string e in - Hh_logger.log "watchman parse failure: %s\nRESPONSE:%s\n" msg stdout; + let msg = + Printf.sprintf + "ClientCheckStatus: watchman parse failure. Expected field `files`.\n%s\nRESPONSE:%s\n" + msg + stdout + in + Hh_logger.log "%s" msg; + HackEventLogger.invariant_violation_bug msg; Lwt.return_error msg | Ok (json, files) -> let has_changed = ref false in