diff --git a/src/plugins/projectexplorer/devicesupport/deviceusedportsgatherer.cpp b/src/plugins/projectexplorer/devicesupport/deviceusedportsgatherer.cpp index 17aa4f2ba9d..7115bb0de3c 100644 --- a/src/plugins/projectexplorer/devicesupport/deviceusedportsgatherer.cpp +++ b/src/plugins/projectexplorer/devicesupport/deviceusedportsgatherer.cpp @@ -65,8 +65,9 @@ DeviceUsedPortsGatherer::~DeviceUsedPortsGatherer() void DeviceUsedPortsGatherer::start(const IDevice::ConstPtr &device) { - QTC_ASSERT(!d->connection, return); - QTC_ASSERT(device && device->portsGatheringMethod(), return); + QTC_ASSERT(!d->connection, emit error("No connection"); return); + QTC_ASSERT(device && device->portsGatheringMethod(), + emit error("Not implemented"); return); d->device = device; d->connection = QSsh::acquireConnection(device->sshParameters());