mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 00:42:14 -07:00
Lint.
This commit is contained in:
parent
2286419945
commit
b7da212f28
1 changed files with 17 additions and 18 deletions
|
|
@ -1215,30 +1215,29 @@ void MainWindow::cardUpdateError(QProcess::ProcessError err)
|
||||||
case QProcess::FailedToStart:
|
case QProcess::FailedToStart:
|
||||||
error = tr("Failed to start. The file might be missing, or permissions might be incorrect.");
|
error = tr("Failed to start. The file might be missing, or permissions might be incorrect.");
|
||||||
break;
|
break;
|
||||||
case QProcess::Crashed:
|
case QProcess::Crashed:
|
||||||
error = tr("The process crashed some time after starting successfully.");
|
error = tr("The process crashed some time after starting successfully.");
|
||||||
error += "\n\nError output:\n" + cardUpdateProcess->readAllStandardError();
|
error += "\n\nError output:\n" + cardUpdateProcess->readAllStandardError();
|
||||||
break;
|
break;
|
||||||
case QProcess::Timedout:
|
case QProcess::Timedout:
|
||||||
error =
|
error = tr("Timed out. The process took too long to respond. The last waitFor...() function timed out.");
|
||||||
tr("Timed out. The process took too long to respond. The last waitFor...() function timed out.");
|
break;
|
||||||
break;
|
case QProcess::WriteError:
|
||||||
case QProcess::WriteError:
|
error = tr("An error occurred when attempting to write to the process. For example, the process may "
|
||||||
error = tr("An error occurred when attempting to write to the process. For example, the process may "
|
"not be running, or it may have closed its input channel.");
|
||||||
"not be running, or it may have closed its input channel.");
|
break;
|
||||||
break;
|
case QProcess::ReadError:
|
||||||
case QProcess::ReadError:
|
error = tr("An error occurred when attempting to read from the process. For example, the process may "
|
||||||
error = tr("An error occurred when attempting to read from the process. For example, the process may "
|
"not be running.");
|
||||||
"not be running.");
|
break;
|
||||||
break;
|
case QProcess::UnknownError:
|
||||||
case QProcess::UnknownError:
|
default:
|
||||||
default:
|
error = tr("Unknown error occurred.");
|
||||||
error = tr("Unknown error occurred.");
|
break;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
exitCardDatabaseUpdate();
|
exitCardDatabaseUpdate();
|
||||||
QMessageBox::warning(this, tr("Error"), tr("The card database updater exited with an error:\n%1").arg(error));
|
QMessageBox::warning(this, tr("Error"), tr("The card database updater exited with an error:\n%1").arg(error));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::cardUpdateFinished(int, QProcess::ExitStatus)
|
void MainWindow::cardUpdateFinished(int, QProcess::ExitStatus)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue