@@ -95,17 +95,19 @@ void check_clock_command(watchman_stream* client, const json_ref& root) {
9595 json_object ({{" sync_timeout" , json_integer (20000 )}})});
9696 auto res = buf.pduEncodeToStream (PduFormat{is_bser, 0 }, cmd, client);
9797 if (res.hasError ()) {
98- throw std::runtime_error (fmt::format (
99- " Failed to send clock PDU: {}" , folly::errnoStr (res.error ())));
98+ throw std::runtime_error (
99+ fmt::format (
100+ " Failed to send clock PDU: {}" , folly::errnoStr (res.error ())));
100101 }
101102
102103 buf.clear ();
103104 auto result = decodeNext (client, buf, jerr);
104105 if (!result) {
105- throw std::runtime_error (fmt::format (
106- " Failed to decode clock response: {} {}" ,
107- jerr.text ,
108- folly::errnoStr (errno)));
106+ throw std::runtime_error (
107+ fmt::format (
108+ " Failed to decode clock response: {} {}" ,
109+ jerr.text ,
110+ folly::errnoStr (errno)));
109111 }
110112
111113 // Check for error in the response
@@ -132,17 +134,19 @@ json_ref get_watch_list(watchman_stream* client) {
132134
133135 auto res = buf.pduEncodeToStream (PduFormat{is_bser, 0 }, cmd, client);
134136 if (res.hasError ()) {
135- throw std::runtime_error (fmt::format (
136- " Failed to send watch-list PDU: {}" , folly::errnoStr (res.error ())));
137+ throw std::runtime_error (
138+ fmt::format (
139+ " Failed to send watch-list PDU: {}" , folly::errnoStr (res.error ())));
137140 }
138141
139142 buf.clear ();
140143 auto result = decodeNext (client, buf, jerr);
141144 if (!result) {
142- throw std::runtime_error (fmt::format (
143- " Failed to decode watch-list response: {} error: {}" ,
144- jerr.text ,
145- folly::errnoStr (errno)));
145+ throw std::runtime_error (
146+ fmt::format (
147+ " Failed to decode watch-list response: {} error: {}" ,
148+ jerr.text ,
149+ folly::errnoStr (errno)));
146150 }
147151 return result->get (" roots" );
148152}
0 commit comments