Improved error message in ProcessResult.