Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Apply read-only asset properties after load #421

Merged
merged 1 commit into from
Aug 20, 2019

Conversation

stevenvergenz
Copy link
Contributor

@stevenvergenz stevenvergenz commented Aug 20, 2019

Fixes #418

@@ -188,6 +188,8 @@ export class AssetContainer {
if (reply.failureMessage || reply.assets.length !== 1) {
throw new Error(`Creation/Loading of asset ${asset.name} failed: ${reply.failureMessage}`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated feedback, but this shouldn't be throwing an exception. Log an error instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This error bubbles up to rejecting the Asset.created promise. Isn't this what it's for?


In reply to: 315937817 [](ancestors = 315937817)

@stevenvergenz stevenvergenz merged commit 8ec277c into red Aug 20, 2019
@stevenvergenz stevenvergenz deleted the stvergen/asset-load-patch branch August 20, 2019 23:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Checking duration on Sound types always returns 0
2 participants