finsemble-seed icon indicating copy to clipboard operation
finsemble-seed copied to clipboard

The fdc3.open function returns a 'error' string rather than an error

Open ColinEberhardt opened this issue 3 years ago • 0 comments

If I execute the following:

fdc3.open("NoAppId").catch(e => console.log("type of thrown object", typeof e));

The following is logged:

type of thrown object string

However, the API indicates that:

If opening errors, it returns an Error with a string from the OpenError enumeration.

Notably fd3-electron also has the same issue.

ColinEberhardt avatar Aug 30 '22 14:08 ColinEberhardt