Skip to content

Commit d8cd028

Browse files
committed
Tweak error messages of some SoltestErrors
1 parent 944b838 commit d8cd028

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

test/FilesystemUtils.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ bool solidity::test::createSymlinkIfSupportedByFilesystem(
8484
return false;
8585
else
8686
solThrow(ExecutionError, fmt::format(
87-
"Failed to create a symbolic link: \"{}\" -> {}\". {}.",
87+
"Failed to create a symbolic link: \"{}\" -> \"{}\". {}.",
8888
_linkName.string(),
8989
_targetPath.string(),
9090
symlinkCreationError.message()

test/TestCaseReader.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ E TestCaseReader::enumSetting(std::string const& _name, std::map<std::string, E>
9696
std::string value = stringSetting(_name, _defaultChoice);
9797

9898
solRequire(_choices.count(value) != 0, solidity::test::ValidationError, fmt::format(
99-
"Invalid Enum value: {}. Available choices: {}.",
99+
"Invalid choice in '{}' setting: {}.\nAvailable choices: {}.",
100+
_name,
100101
value,
101102
util::joinHumanReadable(_choices | ranges::views::keys)
102103
));

test/libyul/Common.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ yul::Dialect const& yul::test::dialect(std::string const& _name, langutil::EVMVe
118118
{
119119
if (!validDialects.count(_name))
120120
solThrow(ValidationError, fmt::format(
121-
"Invalid Dialect \"{}\". Valid dialects are {}.",
121+
"Invalid Dialect \"{}\". Valid dialects: {}.",
122122
_name,
123123
util::joinHumanReadable(validDialectNames(), ", ", " and ")
124124
));

0 commit comments

Comments
 (0)