Skip to content

Commit 702f202

Browse files
committed
Bug fix fixes test
1 parent f2d30ee commit 702f202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/backends/qemu/dnsmasq_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ void mp::DNSMasqServer::start_dnsmasq()
166166
throw std::runtime_error(
167167
fmt::format("Multipass dnsmasq failed to start: {}", dnsmasq_daemon_fork_state.error.value().message));
168168
}
169-
else if (dnsmasq_daemon_fork_state.exit_code != 0)
169+
else if (dnsmasq_daemon_fork_state.exit_code && dnsmasq_daemon_fork_state.exit_code.value() != 0)
170170
{
171171
// exit_code == 2 signifies dnsmasq network-related error. See `man dnsmasq`.
172172
throw std::runtime_error(

0 commit comments

Comments
 (0)