-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14590 from ethereum/severity-and-color-for-cli-er…
…ror-messages Consistent severity and color for CLI error messages
- Loading branch information
Showing
55 changed files
with
138 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Failed to import AST: Imported tree evm version differs from configured evm version! | ||
Error: Failed to import AST: Imported tree evm version differs from configured evm version! |
2 changes: 1 addition & 1 deletion
2
test/cmdlineTests/debug_info_in_yul_and_evm_asm_print_all_and_none/err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Invalid value for --debug-info option: location,all,none | ||
Error: Invalid value for --debug-info option: location,all,none |
2 changes: 1 addition & 1 deletion
2
test/cmdlineTests/debug_info_in_yul_and_evm_asm_print_snippet_only/err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
To use 'snippet' with --debug-info you must select also 'location'. | ||
Error: To use 'snippet' with --debug-info you must select also 'location'. |
2 changes: 1 addition & 1 deletion
2
test/cmdlineTests/linker_mode_invalid_option_no_optimize_yul/err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Option --no-optimize-yul is only valid in compiler and assembler modes. | ||
Error: Option --no-optimize-yul is only valid in compiler and assembler modes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Option --optimize is only valid in compiler and assembler modes. | ||
Error: Option --optimize is only valid in compiler and assembler modes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Option --optimize-runs is only valid in compiler and assembler modes. | ||
Error: Option --optimize-runs is only valid in compiler and assembler modes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Option --optimize-yul is only valid in compiler and assembler modes. | ||
Error: Option --optimize-yul is only valid in compiler and assembler modes. |
2 changes: 1 addition & 1 deletion
2
test/cmdlineTests/linker_mode_invalid_option_yul_optimizations/err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Option --yul-optimizations is only valid in compiler and assembler modes. | ||
Error: Option --yul-optimizations is only valid in compiler and assembler modes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
The following outputs are not supported in linker mode: --abi, --asm, --asm-json, --bin, --bin-runtime, --devdoc, --hashes, --ir, --ir-optimized, --metadata, --opcodes, --storage-layout, --userdoc. | ||
Error: The following outputs are not supported in linker mode: --abi, --asm, --asm-json, --bin, --bin-runtime, --devdoc, --hashes, --ir, --ir-optimized, --metadata, --opcodes, --storage-layout, --userdoc. |
2 changes: 1 addition & 1 deletion
2
test/cmdlineTests/linking_strict_assembly_duplicate_library_name/err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Address specified more than once for library "library.sol:L". | ||
Error: Address specified more than once for library "library.sol:L". |
2 changes: 1 addition & 1 deletion
2
test/cmdlineTests/model_checker_bmc_loop_iterations_invalid_arg/err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
the argument ('bmc') for option '--model-checker-bmc-loop-iterations' is invalid | ||
Error: the argument ('bmc') for option '--model-checker-bmc-loop-iterations' is invalid |
2 changes: 1 addition & 1 deletion
2
test/cmdlineTests/model_checker_bmc_loop_iterations_no_argument/err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
the argument ('model_checker_bmc_loop_iterations_no_argument/input.sol') for option '--model-checker-bmc-loop-iterations' is invalid | ||
Error: the argument ('model_checker_bmc_loop_iterations_no_argument/input.sol') for option '--model-checker-bmc-loop-iterations' is invalid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Invalid option for --model-checker-contracts: model_checker_contracts_inexistent_contract/input.sol: | ||
Error: Invalid option for --model-checker-contracts: model_checker_contracts_inexistent_contract/input.sol: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Invalid option for --model-checker-contracts: a.sol: | ||
Error: Invalid option for --model-checker-contracts: a.sol: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Invalid option for --model-checker-contracts: :A | ||
Error: Invalid option for --model-checker-contracts: :A |
2 changes: 1 addition & 1 deletion
2
test/cmdlineTests/model_checker_contracts_one_contract_missing/err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Invalid option for --model-checker-contracts: model_checker_contracts_all_explicit/input.sol:,model_checker_contracts_all_explicit/input.sol:A | ||
Error: Invalid option for --model-checker-contracts: model_checker_contracts_all_explicit/input.sol:,model_checker_contracts_all_explicit/input.sol:A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Invalid option for --model-checker-contracts: :C | ||
Error: Invalid option for --model-checker-contracts: :C |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
No input files given. If you wish to use the standard input please specify "-" explicitly. | ||
Error: No input files given. If you wish to use the standard input please specify "-" explicitly. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Invalid option for --model-checker-ext-calls: what | ||
Error: Invalid option for --model-checker-ext-calls: what |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Invalid option for --model-checker-invariants: what | ||
Error: Invalid option for --model-checker-invariants: what |
2 changes: 1 addition & 1 deletion
2
test/cmdlineTests/model_checker_print_query_no_smtlib2_solver_bmc/err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Only SMTLib2 solver can be enabled to print queries | ||
Error: Only SMTLib2 solver can be enabled to print queries |
2 changes: 1 addition & 1 deletion
2
test/cmdlineTests/model_checker_print_query_no_smtlib2_solver_chc/err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Only SMTLib2 solver can be enabled to print queries | ||
Error: Only SMTLib2 solver can be enabled to print queries |
2 changes: 1 addition & 1 deletion
2
test/cmdlineTests/model_checker_print_query_superflous_solver/err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Only SMTLib2 solver can be enabled to print queries | ||
Error: Only SMTLib2 solver can be enabled to print queries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Invalid option for --model-checker-solvers: ultraSolver | ||
Error: Invalid option for --model-checker-solvers: ultraSolver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
"smtlib2" is not found. | ||
Error: "smtlib2" is not found. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Invalid option for --model-checker-targets: aaa,bbb | ||
Error: Invalid option for --model-checker-targets: aaa,bbb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Cannot specify a metadata hashing method when --no-cbor-metadata is set. | ||
Error: Cannot specify a metadata hashing method when --no-cbor-metadata is set. |
2 changes: 1 addition & 1 deletion
2
test/cmdlineTests/optimizer_enabled_invalid_yul_optimizer_enabled_and_disabled/err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Options --optimize-yul and --no-optimize-yul cannot be used together. | ||
Error: Options --optimize-yul and --no-optimize-yul cannot be used together. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
The following outputs are not supported in standard JSON mode: --abi, --asm, --asm-json, --ast-compact-json, --bin, --bin-runtime, --devdoc, --hashes, --ir, --ir-optimized, --metadata, --opcodes, --storage-layout, --userdoc. | ||
Error: The following outputs are not supported in standard JSON mode: --abi, --asm, --asm-json, --ast-compact-json, --bin, --bin-runtime, --devdoc, --hashes, --ir, --ir-optimized, --metadata, --opcodes, --storage-layout, --userdoc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
"input.sol" is not found. | ||
Error: "input.sol" is not found. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Option --no-optimize-yul is only valid in compiler and assembler modes. | ||
Error: Option --no-optimize-yul is only valid in compiler and assembler modes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Option --optimize is only valid in compiler and assembler modes. | ||
Error: Option --optimize is only valid in compiler and assembler modes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Option --optimize-runs is only valid in compiler and assembler modes. | ||
Error: Option --optimize-runs is only valid in compiler and assembler modes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Option --optimize-yul is only valid in compiler and assembler modes. | ||
Error: Option --optimize-yul is only valid in compiler and assembler modes. |
2 changes: 1 addition & 1 deletion
2
test/cmdlineTests/standard_invalid_option_yul_optimizations/err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Option --yul-optimizations is only valid in compiler and assembler modes. | ||
Error: Option --yul-optimizations is only valid in compiler and assembler modes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
The following options are mutually exclusive: --stop-after, --abi. Select at most one. | ||
Error: The following options are mutually exclusive: --stop-after, --abi. Select at most one. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
To use 'snippet' with --debug-info you must select also 'location'. | ||
Error: To use 'snippet' with --debug-info you must select also 'location'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
The following options are invalid in assembly mode: --output-dir. | ||
Error: The following options are invalid in assembly mode: --output-dir. |
2 changes: 1 addition & 1 deletion
2
test/cmdlineTests/strict_asm_optimizer_invalid_yul_optimizer_enabled_and_disabled/err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Options --optimize-yul and --no-optimize-yul cannot be used together. | ||
Error: Options --optimize-yul and --no-optimize-yul cannot be used together. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
--yul-dialect and --machine are only valid in assembly mode. | ||
Error: --yul-dialect and --machine are only valid in assembly mode. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
The following outputs are not supported in assembler mode: --abi, --asm-json, --bin-runtime, --devdoc, --hashes, --ir, --metadata, --opcodes, --storage-layout, --userdoc. | ||
Error: The following outputs are not supported in assembler mode: --abi, --asm-json, --bin-runtime, --devdoc, --hashes, --ir, --metadata, --opcodes, --storage-layout, --userdoc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
--yul-optimizations is invalid if Yul optimizer is disabled | ||
Error: --yul-optimizations is invalid if Yul optimizer is disabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Invalid optimizer step sequence in --yul-optimizations: 'b' is not a valid step abbreviation | ||
Error: Invalid optimizer step sequence in --yul-optimizations: 'b' is not a valid step abbreviation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Invalid optimizer step sequence in --yul-optimizations: Brackets nested too deep | ||
Error: Invalid optimizer step sequence in --yul-optimizations: Brackets nested too deep |
2 changes: 1 addition & 1 deletion
2
test/cmdlineTests/yul_optimizer_steps_unbalanced_closing_bracket/err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Invalid optimizer step sequence in --yul-optimizations: Unbalanced brackets | ||
Error: Invalid optimizer step sequence in --yul-optimizations: Unbalanced brackets |
2 changes: 1 addition & 1 deletion
2
test/cmdlineTests/yul_optimizer_steps_unbalanced_opening_bracket/err
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Invalid optimizer step sequence in --yul-optimizations: Unbalanced brackets | ||
Error: Invalid optimizer step sequence in --yul-optimizations: Unbalanced brackets |
Oops, something went wrong.