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

Descriptive error instead of allowing starting a node with forc run #786

Merged
merged 1 commit into from
Feb 14, 2022

Conversation

adlerjohn
Copy link
Contributor

Fixes #770

Copy link
Member

@digorithm digorithm left a comment

Choose a reason for hiding this comment

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

Yup, this is better approach.

Copy link
Contributor

@mitchmindtree mitchmindtree left a comment

Choose a reason for hiding this comment

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

Nice, I think it's a good choice to more clearly distinguish between responsibilities of forc and fuel-core like this. Maybe once both have matured a bit we can consider a dedicated optional flag that spins up a temp fuel-core for the duration of forc run or something along those lines.

@@ -38,6 +38,11 @@ impl CliError {
);
Self { message }
}

pub fn fuel_core_not_running(node_url: &str) -> Self {
let message = format!("could not get a response from node at the URL {}. Start a node with `fuel-core`. See <https://github.com/FuelLabs/fuel-core#running> for more information", node_url);
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm surprised rustfmt doesn't try and wrap this or break the format! args onto different lines, but if rustfmt's happy I'm happy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Revert and rethink starting node with forc run
3 participants