From 343ae89e0abd1c03ab5abebf0888d9f2d5e9f099 Mon Sep 17 00:00:00 2001 From: Yoshi Huang Date: Thu, 31 Jan 2013 23:10:34 +0800 Subject: [PATCH] Bug 836731 : Fix processICCIOError. r=vicamo --- dom/system/gonk/ril_worker.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dom/system/gonk/ril_worker.js b/dom/system/gonk/ril_worker.js index 534f3b347e66..92df155b4c3d 100644 --- a/dom/system/gonk/ril_worker.js +++ b/dom/system/gonk/ril_worker.js @@ -8742,10 +8742,12 @@ let ICCIOHelper = { // description. let errorMsg = "ICC I/O Error code " + RIL_ERROR_TO_GECKO_ERROR[options.rilRequestError] + - "EF id = " + options.fileId.toString(16) + - " command = " + options.command.toString(16) + - "(" + options.sw1.toString(16) + - "/" + options.sw2.toString(16) + ")"; + " EF id = " + options.fileId.toString(16) + + " command = " + options.command.toString(16); + if (options.sw1 && options.sw2) { + errorMsg += "(" + options.sw1.toString(16) + + "/" + options.sw2.toString(16) + ")"; + } error(errorMsg); }, };