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

Update compile.ts - more clear Error message when using swanky contract compile #129

Closed
wants to merge 1 commit into from

Conversation

andabak
Copy link
Collaborator

@andabak andabak commented Mar 17, 2023

Adding more verbosity to swanky contract compile when invoked without arguments (suggesting to use --all feature to compile all available cotracts).

@@ -69,7 +69,7 @@ export class CompileContract extends Command {
for (const contractName of contractNames) {
const contractInfo = config.contracts[contractName];
if (!contractInfo) {
this.error(`Cannot find contract info for ${contractName} contract in swanky.config.json`);
this.error(`Cannot find contract info for ${contractName} contract in swanky.config.json. If you are trying to compile all available contracts in the project, please use --all flag.`);
Copy link
Contributor

Choose a reason for hiding this comment

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

getting undefined here is trivial bug which I introduced in the last PR when resolving contracts.
So, when neither contract name nor --all flag specified, we gets error even before here. it will be fixed with this PR #126

Copy link
Collaborator

Choose a reason for hiding this comment

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

@shunsukew this one can be closed now?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes

@shunsukew shunsukew closed this Mar 25, 2023
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.

None yet

3 participants