E0257

generated from midad spec --json at build time; not edited by hand

E0257 error

route handler {} must take one map and return a map

What to do

write function it(req: map): map { ... return respond(status, body); }

From the binary

$ midad explain E0257
E0257 (error)
  route handler `{}` must take one map and return a map
  fix: write `function it(req: map): map { ... return respond(status, body); }`

A message template can carry {} where the checker fills in the values it saw: the type it expected, the target it refused, the name it could not find.

On this page