Skip to content

Commit

Permalink
log instead of crash
Browse files Browse the repository at this point in the history
  • Loading branch information
panentheos committed Jun 10, 2024
1 parent 2cdd832 commit 51b0445
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/pa_ess/updater.ex
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,12 @@ defmodule PaEss.Updater do
list -> Enum.at(list, i, List.last(list))
end)

^top_duration = bottom_duration
if top_duration != bottom_duration do
Logger.error(
"duration mismatch when zipping pages: top=#{top_duration} bottom=#{bottom_duration}"
)
end

{top, bottom, top_duration}
end)
end
Expand Down

0 comments on commit 51b0445

Please sign in to comment.