d-voting icon indicating copy to clipboard operation
d-voting copied to clipboard

Define DKG error code

Open cmsigrist opened this issue 3 years ago • 1 comments

The DKG return the status Failed when the user tries to setup a node that is already Setup. Currently, the front-end checks during the polling the content of the error message and ignores the error if it contains the string "setup() was already called, only one call is allowed" (marking the Promise as resolved with the status Setup). An error code, corresponding to this case should be defined instead.

cmsigrist avatar Jun 07 '22 17:06 cmsigrist

True. The frontend can define (and document) one. The backend will then adapt.

nkcr avatar Jun 07 '22 17:06 nkcr