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,6 +286,7 @@ CompositeStorage::GetInfo(const char *uri, bool follow, FileInfo &info,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!error.IsDefined())
|
||||||
error.Set(composite_domain, "No such directory");
|
error.Set(composite_domain, "No such directory");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user