mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 03:37:53 +00:00
LibMedia: Remove LibMedia::Audio::LoaderError
This class was used as little more than a wrapper around `Error`, so we might as well use `Error` in the first place.
This commit is contained in:
committed by
Jelle Raaijmakers
parent
f4b0d17e4b
commit
4d38e04e48
@@ -32,7 +32,7 @@ ErrorOr<FixedArray<Audio::Sample>> AudioCodecPlugin::read_samples_from_loader(Au
|
||||
{
|
||||
auto buffer_or_error = loader.get_more_samples(samples_to_load);
|
||||
if (buffer_or_error.is_error()) {
|
||||
dbgln("Error while loading samples: {}", buffer_or_error.error().description);
|
||||
dbgln("Error while loading samples: {}", buffer_or_error.error());
|
||||
return Error::from_string_literal("Error while loading samples");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user