Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odra.toml error handling on empty file. #77

Closed
zie1ony opened this issue Feb 19, 2024 · 1 comment · Fixed by #90
Closed

Odra.toml error handling on empty file. #77

zie1ony opened this issue Feb 19, 2024 · 1 comment · Fixed by #90
Assignees

Comments

@zie1ony
Copy link
Contributor

zie1ony commented Feb 19, 2024

When Odra.toml is empty I get this when cargo odra test

thread 'main' panicked at /Users/ziel/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cargo-odra-0.1.0/src/odra_toml.rs:60:65:
called `Result::unwrap()` on an `Err` value: Error { inner: Error { inner: TomlError { message: "missing field `contracts`", original: Some("#[[contracts]]\n#fqn = \"mycontract::Mycontract\"\n"), keys: [], span: Some(0..0) } } }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

It should inform user that maybe the module was not registered.

@zie1ony
Copy link
Contributor Author

zie1ony commented May 21, 2024

Related: #37

@zie1ony zie1ony moved this from 🆕 Discuss to 🔖 Ready in ⚔️Tavern 🐉 May 22, 2024
@kpob kpob linked a pull request Jun 25, 2024 that will close this issue
@github-project-automation github-project-automation bot moved this from 🔖 Ready to ✅ Done in ⚔️Tavern 🐉 Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

2 participants