Skip to content

Conversation

@bitcartel
Copy link

No description provided.


// Check that the user placed the challenge file into the local directory
if !Path::new("./challenge").exists() {
println!("Error: ./challenge file not found.");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

panic! here would suffice instead of pulling in std::process.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea here is that a regular error message is better for users, rather than a scary panic message.

If the compute binary is to be as bare bones as possible, where fewer dependencies is deemed better, I can change to panic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants