flow-cli
flow-cli copied to clipboard
Helper text for `flow emulator start` is confusing if command is accidentally run from the wrong directory
Instructions
Please fill out the template below to the best of your ability.
Issue To Be Solved
If flow emulator start is run in a directory that does not contain either emulator-account.pkey or flow.json (I'm not sure which, or both), you receive the following message, suggesting there are further steps to run the emulator:
🙏 Configuration is missing, initialize it with: 'flow init' and then rerun this command.
Following these instructions creates a new project in the current directory, which feels unexpected.
(Optional): Suggest A Solution
Recommend updating the helper text to:
🙏 Configuration (flow.json) is missing, are you in the correct directory? If you are trying to create a new project, initialize it with `flow init` and then rerun this command.