Bug 49218: Hide errors in preview output

See I987144e5e315ed9e0a67f599083461a78879c0df

Change-Id: I261faade919608dab1f213f771dd9d7bc666deb6
Merge "Bug 49218: Hide errors in preview output"