diff --git a/action/index.cjs b/action/index.cjs index f9482b5..2def837 100644 --- a/action/index.cjs +++ b/action/index.cjs @@ -188169,11 +188169,12 @@ const robot = (app) => { const tokensDirectories = (response.data && response.data.length) ? response.data : []; const subdirectoriesWithSameTicker = tokensDirectories.filter((content) => content?.type === "dir" && content?.name?.startsWith(tokenTicker)); if (subdirectoriesWithSameTicker.length) { - if (subdirectoriesWithSameTicker[0].name === tokenName) { + const existingToken = subdirectoriesWithSameTicker[0].name; + if (existingToken === tokenName) { // it's just an update to the same token return; } - await fail(`Token with ticker ${tokenTicker} already exists!`); + await fail(`Token with ticker ${tokenTicker} already exists! Existing token id=${existingToken}. New token id=${tokenName}`); } } async function fail(reason) { diff --git a/src/bot.ts b/src/bot.ts index 1fef63f..6ac2c1f 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -244,12 +244,13 @@ export const robot = (app: Probot) => { ); if (subdirectoriesWithSameTicker.length) { - if (subdirectoriesWithSameTicker[0].name === tokenName) { + const existingToken = subdirectoriesWithSameTicker[0].name; + if (existingToken === tokenName) { // it's just an update to the same token return; } - await fail(`Token with ticker ${tokenTicker} already exists!`); + await fail(`Token with ticker ${tokenTicker} already exists! Existing token id=${existingToken}. New token id=${tokenName}`); } }