Improve translate error handling.

Change-Id: If55ebff2c311755926c071c974f695601e9b0f8b