Skip to content

Commit

Permalink
fix(package): small correction in install local error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
line-o committed Mar 27, 2024
1 parent 9317872 commit 5e8640d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands/package/install/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,21 @@ async function install (db, upload, localFilePath, force, verbose) {
const packageDisplay = `${abbrev}@${version}`

if (!force && isUpToDate) {
logSkipped(`${xarDisplay} > ${packageDisplay} is already installed`)
logSkipped(`${xarDisplay} ${packageDisplay} is already installed`)
return { success: false, needsForce: true }
}

const uploadResult = await upload(contents, xarName)
if (!uploadResult.success) {
logFailure(`${xarDisplay} > ${packageDisplay} could not be uploaded`)
logFailure(`${xarDisplay} ${packageDisplay} could not be uploaded`)
console.error(uploadResult.error)
return uploadResult
}

const installResult = await db.app.install(xarName)

if (!installResult.success) {
logFailure(`${xarDisplay} > ${packageDisplay} could not be installed`)
logFailure(`${xarDisplay} ${packageDisplay} could not be installed`)
console.error(installResult.error)
return installResult
}
Expand Down

0 comments on commit 5e8640d

Please sign in to comment.