Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display error message on duplictate conf path #7728

Conversation

AhmedFat7y
Copy link
Contributor

Closes: #7683

If multiple --config options are provided, crash with ServerlessError

example

node .\bin\serverless.js --config hello --config world

Error

Serverless Error --------------------------------------- 

  Got 2 config paths: [hello, world].Expected single value 

  Get Support -------------------------------------------- 
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com

Copy link
Contributor

@medikoo medikoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @AhmedFat7y !

@medikoo medikoo merged commit ca2a73f into serverless:master May 14, 2020
@AhmedFat7y AhmedFat7y deleted the display_error_message_on_duplictate_conf_path branch May 14, 2020 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

serverless cron is not working with type error 'path'
2 participants