decoder/Thread, ...: quote log strings
This commit is contained in:
@@ -211,7 +211,7 @@ ReadConfigFile(ConfigData &config_data, BufferedReader &reader, Path directory)
|
||||
ReadConfigBlock(config_data, reader, name, bo,
|
||||
tokenizer);
|
||||
} else {
|
||||
throw FmtRuntimeError("unrecognized parameter: {}",
|
||||
throw FmtRuntimeError("unrecognized parameter: {:?}",
|
||||
name);
|
||||
}
|
||||
}
|
||||
@@ -222,7 +222,7 @@ ReadConfigFile(ConfigData &config_data, Path path)
|
||||
{
|
||||
assert(!path.IsNull());
|
||||
|
||||
FmtDebug(config_file_domain, "loading file {}", path);
|
||||
FmtDebug(config_file_domain, "loading file {:?}", path);
|
||||
|
||||
FileReader file(path);
|
||||
|
||||
@@ -231,7 +231,7 @@ ReadConfigFile(ConfigData &config_data, Path path)
|
||||
try {
|
||||
ReadConfigFile(config_data, reader, path.GetDirectoryName());
|
||||
} catch (...) {
|
||||
std::throw_with_nested(FmtRuntimeError("Error in {} line {}",
|
||||
std::throw_with_nested(FmtRuntimeError("Error in {:?} line {}",
|
||||
path,
|
||||
reader.GetLineNumber()));
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ GetHome(const char *user)
|
||||
{
|
||||
AllocatedPath result = GetHomeDir(user);
|
||||
if (result.IsNull())
|
||||
throw FmtRuntimeError("no such user: {}", user);
|
||||
throw FmtRuntimeError("no such user: {:?}", user);
|
||||
|
||||
return result;
|
||||
}
|
||||
@@ -91,7 +91,7 @@ ParsePath(const char *path)
|
||||
/ AllocatedPath::FromUTF8Throw(rest);
|
||||
}
|
||||
} else if (!PathTraitsUTF8::IsAbsolute(path)) {
|
||||
throw FmtRuntimeError("not an absolute path: {}", path);
|
||||
throw FmtRuntimeError("not an absolute path: {:?}", path);
|
||||
} else {
|
||||
#endif
|
||||
return AllocatedPath::FromUTF8Throw(path);
|
||||
|
||||
Reference in New Issue
Block a user