Inspect object in throw error message