Open MaryamZi opened 4 years ago
The error detail needs to be a subtype of
public type Detail record {|
string message?;
error cause?;
(anydata|error)...;
|};
which means we can't add the started websub:Hub
object in the error returned if the hub is already started.
So making this an error is not possible with the current structure.
The other option would be to just return an error, without including the websub:Hub
object.
Thoughts, please? @sanjiva @chamil321
Description: @sanjiva pointed out $subject.
Seems like this was missed when migrating to the
error
type, from whenerror
was a record.