diff --git a/src/repo/index.ts b/src/repo/index.ts index a7def91..0cd9979 100644 --- a/src/repo/index.ts +++ b/src/repo/index.ts @@ -123,7 +123,7 @@ export async function addIdentifierToAsset(dir: string, networkCode: string, add const assetInfoFilePath = path.join(dir, getDirPathForTokenlist(networkCode, address), 'info.json'); if(!fs.existsSync(assetInfoFilePath)) { - console.error('addIdentifierToAsset Cannot find asset info file for asset ' + address + ' in directory ' + dir); + console.error('addIdentifierToAsset Cannot find asset info file for asset ' + address + ' in location ' + assetInfoFilePath); return { addedIdentifier: false }; } diff --git a/src/utils/filesystem.ts b/src/utils/filesystem.ts index 96ff535..99da698 100644 --- a/src/utils/filesystem.ts +++ b/src/utils/filesystem.ts @@ -39,6 +39,7 @@ export function readAndParseJson(file: string): any { try { return JSON.parse(fs.readFileSync(file, 'utf8')); } catch (err) { + console.error('readAndParseJson Error on file: ', file); throw err; } }