fontembedder - don't use qFatal - just warning and exit

This commit is contained in:
Kurt Hindenburg
2013-09-17 12:48:02 -04:00
parent 5a94ee3c1f
commit 51a2cc0fc7

View File

@@ -62,13 +62,14 @@ static quint32 readGlyph(QTextStream& input)
int main(int argc, char **argv)
{
if (argc < 2) {
if (argc != 2) {
qWarning("usage: fontembedder LineFont.src > LineFont.h");
exit(1);
}
QFile inFile(argv[1]);
if (!inFile.open(QIODevice::ReadOnly)) {
qFatal("Can not open %s", argv[1]);
qWarning("Can not open %s", argv[1]);
exit(1);
}
QTextStream input(&inFile);