Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 3 files). Show all
Unified · Split
| @@ -276,7 +276,7 @@ void ScriptEngine::loadURL(const QUrl& scriptURL) { · 275 unmodified lines | ||
| 276 | 276 | _scriptContents = in.readAll(); |
| 277 | 277 | emit scriptLoaded(_fileNameString); |
| 278 | 278 | } else { |
| 279 | − qDebug() << "ERROR Loading file:" << _fileNameString; | |
| 279 | + qDebug() << "ERROR Loading file:" << _fileNameString << "line:" << __LINE__; | |
| 280 | 280 | emit errorLoadingScript(_fileNameString); |
| 281 | 281 | } |
| 282 | 282 | } else { |
| @@ -294,7 +294,7 @@ void ScriptEngine::scriptContentsAvailable(const QUrl& url, const QString& scrip · 11 unmodified lines | ||
| 294 | 294 | } |
| 295 | 295 | |
| 296 | 296 | void ScriptEngine::errorInLoadingScript(const QUrl& url) { |
| 297 | − qDebug() << "ERROR Loading file:" << url.toString(); | |
| 297 | + qDebug() << "ERROR Loading file:" << url.toString() << "line:" << __LINE__; | |
| 298 | 298 | emit errorLoadingScript(_fileNameString); // ?? |
| 299 | 299 | } |
| 300 | 300 | |
| @@ -761,7 +761,7 @@ void ScriptEngine::include(const QStringList& includeFiles, QScriptValue callbac · 460 unmodified lines | ||
| 761 | 761 | for (QUrl url : urls) { |
| 762 | 762 | QString contents = data[url]; |
| 763 | 763 | if (contents.isNull()) { |
| 764 | − qDebug() << "Error loading file: " << url; | |
| 764 | + qDebug() << "Error loading file: " << url << "line:" << __LINE__; | |
| 765 | 765 | } else { |
| 766 | 766 | QScriptValue result = evaluate(contents, url.toString()); |
| 767 | 767 | } |