Skip to content

Commit

Permalink
Improve stream format error
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-hek committed Mar 4, 2025
1 parent 0430930 commit b149b92
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/membrane/core/element/stream_format_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ defmodule Membrane.Core.Element.StreamFormatController do
end

raise Membrane.StreamFormatError, """
Stream format: #{inspect(stream_format)} is not matching accepted format pattern #{pretty_accepted_format} in def_#{direction}_pad
for pad #{inspect(pad_name)} in #{inspect(module)}
Stream format: #{inspect(stream_format)} is not matching accepted format pattern \
#{pretty_accepted_format} in def_#{direction}_pad for pad #{inspect(pad_name)} \
in #{inspect(module)}. Beware that stream format is forwarded by the default implemetation \
of handle_stream_format in filters.
"""
end
end
Expand Down

0 comments on commit b149b92

Please sign in to comment.