I’m monitoring a process and I receive a down message:
Last message: {:DOWN, #Reference<0.2151946553.1195376641.173350>, :process, #PID<0.1251.0>, {{:badmatch, [%{"archive_at" => nil, "created_at" => "2016-01-05T21:21:58.119800Z", "effective_end_at" => nil, "end_at" => nil, "frozen_at" => nil, "start_at" => "2013-02-25", "updated_at" => "2016-01-05T21:21:58.119800Z"}]}, [{Indexer.DocumentValidationJob, :new_fields, 3, [file: 'lib/indexer/jobs/document_validation_job.ex', line: 78]}, {Indexer.DocumentValidationJob, :perform, 4, [file: 'lib/indexer/jobs/document_validation_job.ex', line: 59]}, {Task.Supervised, :invoke_mfa, 2, [file: 'lib/task/supervised.ex', line: 90]}, {Task.Supervised, :reply, 5, [file: 'lib/task/supervised.ex', line: 35]}, {:proc_lib, :init_p_do_apply, 3, [file: 'proc_lib.erl', line: 226]}]}}
How can I take that down message and turn it to something that Exception.normalize/3
likes?
I’m using Elixir 1.12.0 and Erlang 24.0.1.
Thanks for the help.