Skip to content

Commit

Permalink
fix(DaedalusVm): move misleading error logs to the correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed Oct 12, 2024
1 parent c0a2559 commit 5017d30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DaedalusVm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,11 @@ ZkDaedalusInstance* ZkDaedalusVm_allocInstance(ZkDaedalusVm* slf, ZkDaedalusSymb
*instance = slf->handle.allocate_instance<zenkit::ISoundSystem>(sym);
break;
default:
ZKC_LOG_ERROR("ZkDaedalusVm_allocInstance() failed: invalid instance type");
delete instance;
return nullptr;
}

ZKC_LOG_ERROR("ZkDaedalusVm_allocInstance() failed: invalid instance type");
return instance;
}

Expand Down Expand Up @@ -397,11 +397,11 @@ ZkDaedalusInstance* ZkDaedalusVm_initInstance(ZkDaedalusVm* slf, ZkDaedalusSymbo
*instance = slf->handle.init_instance<zenkit::ISoundSystem>(sym);
break;
default:
ZKC_LOG_ERROR("ZkDaedalusVm_initInstance() failed: invalid instance type");
delete instance;
return nullptr;
}

ZKC_LOG_ERROR("ZkDaedalusVm_initInstance() failed: invalid instance type");
return instance;
}

Expand Down

0 comments on commit 5017d30

Please sign in to comment.