Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant