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:
		| @@ -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; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann