mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 17:32:15 -07:00
explain what the numbers mean
_error is directly displayed to the user in the "play top card until" validation failure window, so we should make it friendlier
This commit is contained in:
parent
96c6881573
commit
bebfdad52f
1 changed files with 2 additions and 2 deletions
|
|
@ -361,11 +361,11 @@ FilterString::FilterString(const QString &expr)
|
|||
}
|
||||
|
||||
search.log = [&](size_t ln, size_t col, const std::string &msg) {
|
||||
_error = QString("%1:%2: %3").arg(ln).arg(col).arg(QString::fromStdString(msg));
|
||||
_error = QString("line %1, col %2: %3").arg(ln).arg(col).arg(QString::fromStdString(msg));
|
||||
};
|
||||
|
||||
if (!search.parse(ba.data(), result)) {
|
||||
qDebug().nospace() << "FilterString error for " << expr << "; " << _error;
|
||||
qDebug().nospace() << "FilterString error for " << expr << "; " << qPrintable(_error);
|
||||
result = [](CardData) -> bool { return false; };
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue