You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$"Could not determine MXC sandbox support (wxc-exec --probe {what}{(detailisnull?"":$": {Summarize(detail)}")}).");
225
225
}
226
226
227
-
// The process ran to completion. A non-zero exit is the binary reporting that
228
-
// this host cannot sandbox — a definitive, non-retryable verdict. (Genuine
229
-
// infrastructure failures — timeout / failed launch — are captured above via
230
-
// status, so they never reach this branch and get cached as "unsupported".)
231
-
if(exitCode!=0)
232
-
{
233
-
vardetail=FirstNonEmpty(stderr,stdout);
234
-
returnUnsupported(
235
-
$"This Windows host does not support the MXC sandbox (wxc-exec --probe exited {exitCode}{(detailisnull?"":$": {Summarize(detail)}")}).");
236
-
}
237
-
238
-
// Exit 0 but no/garbled output is a binary anomaly, not a clear answer —
227
+
// No/garbled output is a binary anomaly, not a clear answer —
239
228
// treat as a (retryable) probe error rather than silently "unsupported".
240
229
if(string.IsNullOrWhiteSpace(stdout))
241
-
returnError("Could not determine MXC sandbox support (wxc-exec --probe returned no output).");
230
+
{
231
+
vardetail=FirstNonEmpty(stderr);
232
+
returnError(
233
+
$"Could not determine MXC sandbox support (wxc-exec --probe {(exitCode==0?"returned no output":$"exited {exitCode}")}{(detailisnull?"":$": {Summarize(detail)}")}).");
234
+
}
242
235
243
236
try
244
237
{
245
238
usingvardoc=JsonDocument.Parse(stdout);
246
239
varroot=doc.RootElement;
240
+
varwarnings=ReadWarnings(root);
241
+
242
+
if(TryGetString(root,"error")is{}error)
243
+
{
244
+
returnUnsupported(
245
+
$"This Windows host does not support the MXC sandbox (wxc-exec --probe reported: {Summarize(error)}).",
0 commit comments