cli icon indicating copy to clipboard operation
cli copied to clipboard

Please make "fn delete ..." error messages more user-friendly

Open sachin-pikle opened this issue 7 years ago • 2 comments
trafficstars

In both cases below I get an error, which is expected. But the message is cryptic and needs to be made more user-friendly.

  1. Trying to delete an app with a function and a trigger.

$ fn delete app test-app Fn: [DELETE /apps/{app}][409] DeleteAppsApp default &{Error:0xc420449440} See 'fn --help' for more information. Client version: 0.4.150

  1. Trying to delete a function with a trigger.

$ fn delete fn lisbon-app node-t-fn Fn: [DELETE /fns/{fnID}][409] DeleteFn default &{Fields: Message:Fn has associated Triggers} See 'fn --help' for more information. Client version: 0.4.150

sachin-pikle avatar Aug 26 '18 12:08 sachin-pikle

this is from swagger... attempted to do this in the last cli but it's kinda shit, have to type switch all the errors iirc. but yea, agree, we need to unroll the errors

rdallman avatar Aug 27 '18 17:08 rdallman

This ties into #333 I think.

rikgibson avatar Aug 28 '18 17:08 rikgibson