When :beam_lib.chunks fails (e.g. a project module hasn't been loaded into :code.which yet), the existing with returned the raw error tuple as the 'line' value, which then crashed format/1 via String.Chars. Add an explicit else clause so the function always returns nil or an integer. |
||
|---|---|---|
| .. | ||
| analyzer.ex | ||