Skip to content

Commit

Permalink
Merge pull request #174 from PascalPrecht/uiux/commands/apm
Browse files Browse the repository at this point in the history
uiux(commands/apm): show meaningful error messages
  • Loading branch information
izqui authored Aug 23, 2018
2 parents 02f0cfd + 9e523f4 commit f6e2776
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/apm_cmds/versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ exports.handler = async function ({ reporter, module, bump, cwd, network, apm: a
const web3 = await ensureWeb3(network)

apmOptions.ensRegistryAddress = apmOptions['ens-registry']

const versions = await APM(web3, apmOptions).getAllVersions(module.appName)
reporter.info(`${module.appName} has ${versions.length} published versions`)
versions.map((version) => {
if (version && version.content) {
reporter.success(`${version.version}: ${version.contractAddress} ${version.content.provider}:${version.content.location}`)
} else if (version && version.error) {
reporter.warning(`${version.version}: ${version.contractAddress} ${version.error}`)
} else {
reporter.error('Version not found in provider')
}
Expand Down

0 comments on commit f6e2776

Please sign in to comment.