Open andynog opened 4 years ago
I just realized that after setting the environment variable and running the command again the contract.toml is created the same way as not having the environment variable set so this might not be an issue. I believe that maybe this error message should just include additional details that the tools tries to open the newly created file in the editor but failed because the variable was not set but let the user know that the new command was completed successfully.
Tried to run the command to create a new contract and after inputing the template location, got an error message that the $EDITOR environment variable needs to be set. Probably a better UX would be to prompt the user to configure the environment variable before proceeding with the questions because in this case a contract.toml was actually created but without the parameters filled in.