in practice AbstractNetworkJob::errorString is already overriden but the
overrided code is probably never called while the intention looked like
the opposite
fix that by making the method virtual in base class
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
bool timedOut() const { return _timedout; }
/** Returns an error message, if any. */
- QString errorString() const;
+ virtual QString errorString() const;
/** Like errorString, but also checking the reply body for information.
*
return _device;
}
- QString errorString()
+ QString errorString() const override
{
return _errorString.isEmpty() ? AbstractNetworkJob::errorString() : _errorString;
}