Showing the changes to libraries/script-engine/src/AssetScriptingInterface.cpp (1 of 2 files). Show all
Unified · Split
| @@ -44,7 +44,8 @@ void AssetScriptingInterface::setMapping(QString path, QString hash, QScriptValu · 43 unmodified lines | ||
| 44 | 44 | |
| 45 | 45 | QObject::connect(setMappingRequest, &SetMappingRequest::finished, this, [this, callback](SetMappingRequest* request) mutable { |
| 46 | 46 | if (callback.isFunction()) { |
| 47 | − QScriptValueList args { }; | |
| 47 | + QString error = request->getErrorString(); | |
| 48 | + QScriptValueList args { error }; | |
| 48 | 49 | callback.call(_engine->currentContext()->thisObject(), args); |
| 49 | 50 | } |
| 50 | 51 | request->deleteLater(); |