From 85274c18db2368d74254330200ed8b2c59a5c4e8 Mon Sep 17 00:00:00 2001 From: Omar Tawfik <15987992+OmarTawfik@users.noreply.github.com> Date: Wed, 10 Jul 2024 08:26:28 -0700 Subject: [PATCH] remove pragma version error (#585) converted to an `info()` level statement, to reduce noise in error reports. --- server/src/parser/slangHelpers.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/server/src/parser/slangHelpers.ts b/server/src/parser/slangHelpers.ts index 4bc9ff7c..c4fd6687 100644 --- a/server/src/parser/slangHelpers.ts +++ b/server/src/parser/slangHelpers.ts @@ -49,12 +49,10 @@ export function resolveVersion( } else { const latest = versions[versions.length - 1]; - logger.error( - new Error( - `No Slang-supported version (latest: ${latest}) for Solidity found that satisfies the pragma directives: '${versionPragmas.join( - " " - )}'.` - ) + logger.info( + `No Slang-supported version (latest: ${latest}) for Solidity found that satisfies the pragma directives: '${versionPragmas.join( + " " + )}'.` ); return latest;