Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Sub-par error message when calling function not listed in trait #1299

Open
maackle opened this issue Apr 19, 2019 · 0 comments
Open

Sub-par error message when calling function not listed in trait #1299

maackle opened this issue Apr 19, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@maackle
Copy link
Member

maackle commented Apr 19, 2019

This is the error received when calling a function mistakenly left out of the hc_public trait:

debug/actions/verify_grant: no grant for function "setup" in grant Some(["log_request", "get_request", "log_response", "get_response", "log_service", "get_service", "list_servicelogs", "generate_invoice"])
Exception occurred while calling zome function:  unable to call zome "service" function "setup": 

It could be better by listing the trait name rather than listing out the list of functions that comprise the trait.

Related to #1258, could probably be worked on together

@maackle maackle added the enhancement New feature or request label Apr 19, 2019
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