Open riconnon opened 6 years ago
darn, tried to fix this https://github.com/fnproject/cli/pull/214 there is some context there. part of the issue is that the swagger errors are kind of ugly. if we could get prettier swagger errors, we wouldn't need such intricate error handling, we could just if err != nil { return err }
like normal (maybe this is better problem to solve, but I didn't see how last I looked).
The CLI assumes in lots of places that errors will contain a payload with a well formed error message: