Skip to content

Commit

Permalink
Merge pull request #107 from aragon/missing_versions
Browse files Browse the repository at this point in the history
Missing versions
  • Loading branch information
bingen authored May 23, 2018
2 parents e9f20c0 + 258c717 commit 3672935
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/commands/apm_cmds/versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ exports.handler = async function ({ reporter, module, bump, cwd, network, apm: a
const versions = await APM(web3, apmOptions).getAllVersions(module.appName)
reporter.info(`${module.appName} has ${versions.length} published versions`)
versions.map((version) => {
reporter.success(`${version.version}: ${version.contractAddress} ${version.content.provider}:${version.content.location}`)
if (version && version.content) {
reporter.success(`${version.version}: ${version.contractAddress} ${version.content.provider}:${version.content.location}`)
} else {
reporter.error('Version not found in provider')
}
})
process.exit()
}

0 comments on commit 3672935

Please sign in to comment.