handleCtrlError function

void handleCtrlError (dynamic ctrl, String message)

Calls close and signals the error on the ctrl.

Implementation

void handleCtrlError(dynamic ctrl, String message) {
  ctrl.proxyError(FidlError(message));
  ctrl.close();
}