From 299e7a2c32ddd428d61ac4320a89c0dad8953098 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Sat, 13 Nov 2021 16:23:05 +0100 Subject: [PATCH] Move IDX errors to console.debug Signed-off-by: Sebastian Martinez --- src/profile.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/profile.ts b/src/profile.ts index a62a88542..7860182bd 100644 --- a/src/profile.ts +++ b/src/profile.ts @@ -147,7 +147,10 @@ export class Profile { ); return { address, ens: null, idx }; } catch (e) { - console.error(e); + // Look for the No DID found for error by the resolveIdxProfile fn and send it to console.debug + if (e.message.match("No DID found for")) console.debug(e); + else console.error(e); + return { address, ens: null, idx: null }; } }