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
let stdout = String::from_utf8(output.stdout.clone()).wrap_err("Expected valid UTF-8 output")?;
1567
+
1568
+
// "Only one instance of RustRover can be run at a time."
1569
+
if stdout.contains("Only one instance of ") && stdout.contains(" can be run at a time."){
1570
+
// It's always paired with status code 1
1571
+
let status_code = output
1572
+
.status
1573
+
.code()
1574
+
.ok_or_eyre("Failed to get status code; was killed with signal")?;
1575
+
if status_code != 1{
1576
+
returnErr(eyre!("Expected status code 1 ('Only one instance of <IDE> can be run at a time.'), but found status code {}. Output: {output:?}", status_code));
1577
+
}
1578
+
// Don't crash, but don't be silent either
1579
+
warn!("{name} is already running, can't update it now.");
1580
+
Err(SkipStep(format!("{name} is already running, can't update it now.")).into())
0 commit comments