~/talk

Modeling errors in Now CLI

Talkat ReactiveConf 2018 · 2018-10-29..10-31· [nodejs, developer-experience]
slides:none on file

Describes a concrete error-handling system built for Now CLI that uses Flow types to make every call’s error space explicit, converts some thrown API failures into returned error values, and defines an ExpectedError prototype to pattern-match and enrich errors from File Upload, Deployment and Instances APIs. Shows how creating a return-or-throw wrapper and specific error classes forces signature updates, enables precise user messages and err.sh links, and already feeds analytics (Liberato) so the approach proves useful in production.

AI-written summary · about

  1. 0:00Start
  2. 6:41Lack of Context
  3. 19:36Handle the Unknown Error Space
  4. 21:27Return Errors
  5. 24:33Recap
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.