Skip to content

Commit d24f1da

Browse files
committed
Do not treat no issues as error
... for the "list_issues" tool. This is what happens after the assistant fixes an error, the issue is gone!
1 parent 619be64 commit d24f1da

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tools/list_issues_tool.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ QString ListIssuesTool::oneLineSummary(const QJsonObject &args) const
159159
if (parts.isEmpty())
160160
parts << "no types";
161161

162-
QString summary = QStringLiteral("list %1 (%2)").arg(parts.join(QLatin1String(" + ")),
163-
all ? QStringLiteral("all")
164-
: QString::number(maxRes));
162+
QString summary = QStringLiteral("list %1 (%2)")
163+
.arg(parts.join(QLatin1String(" + ")),
164+
all ? QStringLiteral("all") : QString::number(maxRes));
165165
return summary;
166166
}
167167

@@ -211,7 +211,7 @@ void ListIssuesTool::run(const QJsonObject &args,
211211
}
212212

213213
if (lines.isEmpty()) {
214-
done(Tr::tr("No issues match the requested criteria."), false);
214+
done(Tr::tr("No issues found."), true);
215215
} else {
216216
done(lines.join('\n'), true);
217217
}

0 commit comments

Comments
 (0)