diff --git a/src/extensibility/Package.js b/src/extensibility/Package.js index 66b1aa5dd95..30c98c63ca8 100644 --- a/src/extensibility/Package.js +++ b/src/extensibility/Package.js @@ -361,11 +361,13 @@ define(function (require, exports, module) { } if (Array.isArray(error)) { - error[0] = localize(error[0]); - return StringUtils.format.apply(window, error); - } else { - return localize(error); + error = error[0]; + if (Array.isArray(error)) { + error[0] = localize(error[0]); + return StringUtils.format.apply(window, error); + } } + return localize(error); }