lib/fmt/RuntimeError: new library

Replacing FormatRuntimeError().
This commit is contained in:
Max Kellermann
2022-11-28 21:58:21 +01:00
parent 45b13fc2a6
commit fa58db798b
105 changed files with 551 additions and 502 deletions

View File

@@ -28,9 +28,9 @@
#include "../MemorySongEnumerator.hxx"
#include "lib/xiph/FlacMetadataChain.hxx"
#include "lib/xiph/FlacMetadataIterator.hxx"
#include "lib/fmt/RuntimeError.hxx"
#include "song/DetachedSong.hxx"
#include "input/InputStream.hxx"
#include "util/RuntimeError.hxx"
#include <FLAC/metadata.h>
@@ -67,8 +67,8 @@ flac_playlist_open_stream(InputStreamPtr &&is)
{
FlacMetadataChain chain;
if (!chain.Read(*is))
throw FormatRuntimeError("Failed to read FLAC metadata: %s",
chain.GetStatusString());
throw FmtRuntimeError("Failed to read FLAC metadata: {}",
chain.GetStatusString());
FlacMetadataIterator iterator((FLAC__Metadata_Chain *)chain);