We log an error event when loading a task card in the Newcomer Tasks / Suggested Edits module fails, but not the error itself; we should do that.
As a first approximation just truncate the error message to some reasonable length and put it into the data. Later we might want to consider a separate schema with relevant details like language or user agent.
(We should probably check first where the effort to have generic JS error logging is at, maybe a one-off solution is not worth the effort today.)
Also make sure that errors are logged as such; it seems they sometimes get logged as an empty event.