Skip to content

Commit

Permalink
[daemon] Assert exception pertains to snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
ricab committed Dec 14, 2023
1 parent 12a6d66 commit e8a718e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/daemon/daemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3467,8 +3467,9 @@ void mp::Daemon::populate_instance_info(VirtualMachine& vm,
{
instance_info->set_num_snapshots(vm.get_num_snapshots());
}
catch (const NotImplementedOnThisBackendException&)
catch (const NotImplementedOnThisBackendException& e)
{

Check warning on line 3471 in src/daemon/daemon.cpp

View check run for this annotation

Codecov / codecov/patch

src/daemon/daemon.cpp#L3471

Added line #L3471 was not covered by tests
assert(std::string{e.what()}.find("snapshots") != std::string::npos); // TODO per-feature exception type instead
}

Check warning on line 3473 in src/daemon/daemon.cpp

View check run for this annotation

Codecov / codecov/patch

src/daemon/daemon.cpp#L3473

Added line #L3473 was not covered by tests
instance_info->set_image_release(original_release);
instance_info->set_id(vm_image.id);
Expand Down

0 comments on commit e8a718e

Please sign in to comment.