Set error string when failing early

This commit is contained in:
Nils Maier 2019-08-21 16:33:07 +02:00
parent 6b07fa2d08
commit b0ba8073fc

View File

@ -126,8 +126,9 @@ export class Download extends BaseDownload {
this.markDirty(); this.markDirty();
} }
catch (ex) { catch (ex) {
console.error("failed", ex.toString(), ex); console.error("failed to start download", ex.toString(), ex);
this.changeState(CANCELED); this.changeState(CANCELED);
this.error = ex.toString();
} }
} }