diff --git a/packages/indexer-cli/src/commands/indexer/allocations/close.ts b/packages/indexer-cli/src/commands/indexer/allocations/close.ts index 22935786d..7976eb1ae 100644 --- a/packages/indexer-cli/src/commands/indexer/allocations/close.ts +++ b/packages/indexer-cli/src/commands/indexer/allocations/close.ts @@ -75,7 +75,7 @@ module.exports = { try { poi = validatePOI(unformattedPoi) } catch (error) { - spinner.fail(`Invalid POI provided, '${unformattedPoi}'. ` + error.message()) + spinner.fail(`Invalid POI provided, '${unformattedPoi}'. ` + error.message) process.exitCode = 1 return }