Skip to content

Commit

Permalink
Log original exception if vhost definition load fails (#949)
Browse files Browse the repository at this point in the history
  • Loading branch information
spuun authored Feb 13, 2025
1 parent a418d93 commit 7f85d32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lavinmq/vhost.cr
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,8 @@ module LavinMQ
protected def load_apply(frame : AMQP::Frame)
apply frame, loading: true
rescue ex : LavinMQ::Error
raise Error::InvalidDefinitions.new("Invalid frame: #{frame.inspect}")
@log.error(exception: ex) { "Failed to apply frame #{frame.inspect}" }
raise Error::InvalidDefinitions.new("Invalid frame: in definitions file")
end

private def load_default_definitions
Expand Down

0 comments on commit 7f85d32

Please sign in to comment.