Commit ee026386 authored by Max Kellermann's avatar Max Kellermann

storage/Composite: avoid setting the error twice

If an error has already been set by f.directory->storage->GetInfo(), don't set it again.
parent 49c04ccf
......@@ -286,6 +286,7 @@ CompositeStorage::GetInfo(const char *uri, bool follow, FileInfo &info,
return true;
}
if (!error.IsDefined())
error.Set(composite_domain, "No such directory");
return false;
}
......
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