You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When executing the commands func deploy, func run, and func build without first initializing a function (missing func.yaml file due to not running func create or func init), the error handling leads to an unclear message. This occurs even if the commands are typed correctly.
Current Behavior:
Attempting to run any of the above commands without initializing a function results in a misleading error message related to registry validation:
func build -b=s2i -v
A registry for function images is required. For example, 'docker.io/tigerteam'.
X Sorry, your reply was invalid: invalid registry ["quay.io/user-abc"]: name required
? Registry for function images:
The error message should clearly indicate that the function has not been initialized and provide guidance on the necessary steps to proceed.
Proposed Solution:
Improve the error message to more accurately reflect the issue and guide the user. Suggested new error message:
Error: No function has been initialized in the current directory ({path}). Please initialize a function by running either:
- func init --language <your language>
- func create <function name> --language <language>
The text was updated successfully, but these errors were encountered:
Issue Summary:
When executing the commands
func deploy
,func run
, andfunc build
without first initializing a function (missingfunc.yaml
file due to not runningfunc create
orfunc init
), the error handling leads to an unclear message. This occurs even if the commands are typed correctly.Current Behavior:
Attempting to run any of the above commands without initializing a function results in a misleading error message related to registry validation:
The error message should clearly indicate that the function has not been initialized and provide guidance on the necessary steps to proceed.
Proposed Solution:
Improve the error message to more accurately reflect the issue and guide the user. Suggested new error message:
The text was updated successfully, but these errors were encountered: