Learn / Upgrading to 0.41

Servers: what a failure tells its caller

foldkit-remote-server, foldkit-remote-drizzle, foldkit-cms-drizzle and foldkit-sync no longer send a caller the text of a failure on their own side. The caller reads Internal error and an incident id; the cause goes to the server's diagnostics under that id.

  • Words your handler means the caller to read are said with RemoteServer.tell('…'); a caught error is passed as new RemoteServerError({ message, cause }).
  • In Sync, a handler that throws words for the replica throws new ExchangeRefused({ message }). A document host's resolver that wants its words read gives them as the refusal's reason.
  • A client that matched on an old message (Database query failed, Database write failed) reads RemoteData.incident(error) instead.
  • cms_drafts.schedule_error values stored before 0.41 still hold the old text; overwrite them once (the changelog has the statement).