mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-25 17:46:48 +00:00
error: More error_setg() usage
A few uses of error_set(ERROR_CLASS_GENERIC_ERROR) were missed in c6bd8c706, or have snuck in since. Nuke them. Backports commit 455b0fde8c38a0794743e2e7c1a40018b7bee9f6 from qemu
This commit is contained in:
parent
60975685ce
commit
085a89bef5
|
@ -1110,8 +1110,8 @@ static Object *object_resolve_link(struct uc_struct *uc, Object *obj, const char
|
|||
target = object_resolve_path_type(uc, path, target_type, &ambiguous);
|
||||
|
||||
if (ambiguous) {
|
||||
error_set(errp, ERROR_CLASS_GENERIC_ERROR,
|
||||
"Path '%s' does not uniquely identify an object", path);
|
||||
error_setg(errp, "Path '%s' does not uniquely identify an object",
|
||||
path);
|
||||
} else if (!target) {
|
||||
target = object_resolve_path(uc, path, &ambiguous);
|
||||
if (target || ambiguous) {
|
||||
|
|
Loading…
Reference in a new issue