diff --git a/src/community.js b/src/community.js index 271491394..fab1deab0 100644 --- a/src/community.js +++ b/src/community.js @@ -86,7 +86,7 @@ async function getAppUpdate(app, options) { const sortedVersions = Object.keys(versions).sort(manifestFormat.packageVersionCompare); const idx = sortedVersions.findIndex(v => v === app.manifest.version); - if (idx === -1) throw new BoxError(BoxError.EXTERNAL_ERROR, 'No such version') + if (idx === -1) throw new BoxError(BoxError.EXTERNAL_ERROR, 'No such version'); if (idx === sortedVersions.length-1) return null; // no update const nextVersion = versions[sortedVersions[idx+1]];