Skip to content

Commit

Permalink
Also mention the latest supported version in the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Feb 21, 2024
1 parent 8983a3b commit 96f9262
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/parser/slangHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ export function getLanguage(versionPragmas: string[]): Language {
);

if (slangVersion === null) {
const latest = supportedVersions[supportedVersions.length - 1];
throw new Error(
`No Slang-supported version for Solidity found that satisfies the pragma directives: '${versionPragmas.join(
`No Slang-supported version (latest: ${latest}) for Solidity found that satisfies the pragma directives: '${versionPragmas.join(
" "
)}'.`
);
Expand Down

0 comments on commit 96f9262

Please sign in to comment.