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

Provide better error handling, when emulator falls #64

Open
MaxStalker opened this issue Dec 8, 2021 · 0 comments
Open

Provide better error handling, when emulator falls #64

MaxStalker opened this issue Dec 8, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@MaxStalker
Copy link
Collaborator

MaxStalker commented Dec 8, 2021

One easy way to mess up your emulator is to provide non-existing contract for deployment (for example, adding .cdc extension at the end)

In your flow.json:

        "deployments": {
		"emulator": {
			"emulator-account": [
				"MyFancyContract.cdc`
			]
		}
	}

Emulator will exit with error deployment contains nonexisting contract MyFancyContract.cdc.
But tests will fail with Error: Response closed without headers - which gives nothing to work with.

@MaxStalker MaxStalker added the enhancement New feature or request label Dec 8, 2021
@MaxStalker MaxStalker self-assigned this Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant