Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: composition parsing errors are now public #19

Merged
merged 4 commits into from
May 19, 2024
Merged

feat: composition parsing errors are now public #19

merged 4 commits into from
May 19, 2024

Conversation

simbleau
Copy link
Member

Makes potential errors public so developers can use it.

@simbleau simbleau requested review from xStrom and DJMcNab May 18, 2024 23:44
@@ -30,24 +29,27 @@ pub struct Composition {
pub layers: Vec<model::Layer>,
}

/// Triggered when is an issue parsing a lottie file.
pub type VelatoError = serde_json::Error;
Copy link
Member

Choose a reason for hiding this comment

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

Is it worth using a non_exhaustive enum for this instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, I'll make that change. Seems reasonable!

@simbleau simbleau merged commit e387a4c into main May 19, 2024
9 checks passed
@simbleau simbleau deleted the pub-error branch May 19, 2024 15:25
simbleau added a commit that referenced this pull request May 19, 2024
Makes potential errors public so developers can use it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants