Commit 8146f025 authored by Nate Graham's avatar Nate Graham
Browse files

Make "charge thresholds not supported" error message more explicit

Hopefully this will make it clear whose fault it is (i.e. not ours).

CCBUG: 455211
parent aa8ee8f2
Pipeline #191041 passed with stage
in 1 minute and 28 seconds
......@@ -109,13 +109,13 @@ ActionReply ChargeThresholdHelper::getthreshold(const QVariantMap &args)
if (startThresholds.isEmpty() && stopThresholds.isEmpty()) {
auto reply = ActionReply::HelperErrorReply();
reply.setErrorDescription(QStringLiteral("Charge thresholds not supported"));
reply.setErrorDescription(QStringLiteral("Charge thresholds are not supported by the kernel for this hardware"));
return reply;
}
if (!startThresholds.isEmpty() && !stopThresholds.isEmpty() && startThresholds.count() != stopThresholds.count()) {
auto reply = ActionReply::HelperErrorReply();
reply.setErrorDescription(QStringLiteral("Charge thresholds not supported"));
reply.setErrorDescription(QStringLiteral("Charge thresholds are not supported by the kernel for this hardware"));
return reply;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment