storage/Composite: avoid setting the error twice
If an error has already been set by f.directory->storage->GetInfo(), don't set it again.
This commit is contained in:
parent
49c04ccfc7
commit
ee026386e5
|
@ -286,7 +286,8 @@ CompositeStorage::GetInfo(const char *uri, bool follow, FileInfo &info,
|
|||
return true;
|
||||
}
|
||||
|
||||
error.Set(composite_domain, "No such directory");
|
||||
if (!error.IsDefined())
|
||||
error.Set(composite_domain, "No such directory");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue