Commit 4dc7d1c0 authored by Max Kellermann's avatar Max Kellermann

decoder/Thread: use AllocatedPath::FromUTF8Throw()

parent f6a85f0b
......@@ -429,13 +429,7 @@ try {
Path path_fs = Path::Null();
AllocatedPath path_buffer = AllocatedPath::Null();
if (PathTraitsUTF8::IsAbsolute(uri_utf8)) {
Error error;
path_buffer = AllocatedPath::FromUTF8(uri_utf8, error);
if (path_buffer.IsNull()) {
dc.CommandFinishedLocked();
throw std::move(error);
}
path_buffer = AllocatedPath::FromUTF8Throw(uri_utf8);
path_fs = path_buffer;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment