func icon indicating copy to clipboard operation
func copied to clipboard

Cryptic error message from `func describe` when no function is found in current directory

Open RayyanSeliya opened this issue 3 months ago • 1 comments

Current behavior:

When running func describe outside of a function directory, the error message is technical and unhelpful for beginners:

Error: function not found at this path and no name provided

Proposed improvement:

Make the error message more user-friendly and educational:

no function found in current directory.
You need to be inside a function directory to get the function description.

Try this:
  func create --language go myfunction    Create a new function
  cd myfunction                          Go into the function directory
  func describe                          Show function description

Or if you have an existing function:
  cd path/to/your/function              Go to your function directory
  func describe                         Show function description

RayyanSeliya avatar Sep 06 '25 14:09 RayyanSeliya

/kind enhancement

RayyanSeliya avatar Sep 06 '25 14:09 RayyanSeliya