mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
chore(gui-client): improve context when resolvectl fails (#8462)
Took me a while to figure out what the "File not found" error was pointing to. Adding some context should help.
This commit is contained in:
@@ -48,7 +48,10 @@ impl DnsController {
|
||||
// Flushing is only implemented for systemd-resolved
|
||||
if matches!(self.dns_control_method, DnsControlMethod::SystemdResolved) {
|
||||
tracing::debug!("Flushing systemd-resolved DNS cache...");
|
||||
Command::new("resolvectl").arg("flush-caches").status()?;
|
||||
Command::new("resolvectl")
|
||||
.arg("flush-caches")
|
||||
.status()
|
||||
.context("Failed to run `resolvectl flush-caches`")?;
|
||||
tracing::debug!("Flushed DNS.");
|
||||
}
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user