fix: don't error when default config for toolkit settings is not present

This commit is contained in:
Ian Douglas Scott 2025-08-22 13:41:12 -07:00 committed by GitHub
parent 8415d77b0a
commit 2d62503fdf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View file

@ -369,6 +369,12 @@ where
.into_iter()
.filter(cosmic_config::Error::is_err)
{
if let cosmic_config::Error::GetKey(_, err) = &why {
if err.kind() == std::io::ErrorKind::NotFound {
// No system default config installed; don't error
continue;
}
}
tracing::error!(?why, "cosmic toolkit config update error");
}