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

Sort component state fields in the error logs in the order from the most to the least important #614

Merged
merged 14 commits into from
Oct 4, 2023
Merged
Prev Previous commit
Next Next commit
Revert "Fix compilation error"
This reverts commit 5b1e1cb.
FelonEkonom committed Oct 3, 2023
commit 9c930fb9f7d8d7765a4eb1d0324627d2e493f429
2 changes: 1 addition & 1 deletion lib/membrane/core/inspect.ex
Original file line number Diff line number Diff line change
@@ -63,7 +63,7 @@ defmodule Membrane.Core.Inspect do

@spec ensure_all_struct_fields_inspected!(module()) :: :ok | no_return()
def ensure_all_struct_fields_inspected!(state_module) do
apply(state_module, :__info__, [:struct])
state_module.__info__(:struct)
|> Enum.map(& &1.field)
|> Enum.reject(&(&1 in @fields_order))
|> case do