log some context when throwing inside model.fn