mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
LibCore+Everywhere: Return ErrorOr from ConfigFile::sync()
Currently this method always succeeds, but that won't be true once we switch to the Core::Stream API. :^) Some of these places would ideally show an error message to the user, since failure to save a file is significant, but let's not get distracted right now.
This commit is contained in:
parent
b90dc408bd
commit
cd0ffe5460
10 changed files with 39 additions and 24 deletions
|
@ -191,7 +191,8 @@ void Mixer::request_setting_sync()
|
|||
m_config_write_timer = Core::Timer::create_single_shot(
|
||||
AUDIO_CONFIG_WRITE_INTERVAL,
|
||||
[this] {
|
||||
m_config->sync();
|
||||
if (auto result = m_config->sync(); result.is_error())
|
||||
dbgln("Failed to write audio mixer config: {}", result.error());
|
||||
},
|
||||
this);
|
||||
m_config_write_timer->start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue