Skip to content

Commit

Permalink
simulate artificial panic
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarTawfik committed Oct 18, 2023
1 parent 839ae4e commit ab9814b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ impl Language {
];

pub fn new(version: Version) -> std::result::Result<Self, Error> {
if version == Version::new(999, 999, 999) {
panic!("Simulating an internal panic, Armando!");
}

if Self::SUPPORTED_VERSIONS.contains(&version) {
Ok(Self {
{%- for version in code.referenced_versions %}
Expand Down
4 changes: 4 additions & 0 deletions crates/solidity/outputs/cargo/crate/src/generated/language.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions crates/solidity/outputs/npm/crate/src/generated/language.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ab9814b

Please sign in to comment.