Changeset d466553


Ignore:
Timestamp:
04/07/12 01:22:47 (10 years ago)
Author:
gregor herrmann <gregoa@…>
Branches:
master, qt5
Children:
1ba9324
Parents:
07f01be
Message:

More output on errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sql/schedulexmlparser.cpp

    r07f01be rd466553  
    3737    QDomDocument document;
    3838    QString xml_error;
    39     if (!document.setContent (aData, false, &xml_error)) {
    40         error_message("Could not parse schedule: " + xml_error);
     39    int xml_error_line;
     40    int xml_error_column;
     41    if (!document.setContent (aData, false, &xml_error, &xml_error_line, &xml_error_column)) {
     42        error_message("Could not parse schedule: " + xml_error + " at line " + QString("%1").arg(xml_error_line) + " column " + QString("%1").arg(xml_error_column));
    4143        return;
    4244    }
Note: See TracChangeset for help on using the changeset viewer.