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

Added a graceful error message when executing the *run" command with … #311

Merged
merged 6 commits into from
Mar 29, 2020

Conversation

bakatzir
Copy link
Member

…a misspelled command

Status

Ready

Related Issues

fixes: https://github.com/demisto/etc/issues/22924

@bakatzir bakatzir requested a review from yaakovi March 29, 2020 11:03
@bakatzir bakatzir self-assigned this Mar 29, 2020
@coveralls
Copy link
Collaborator

coveralls commented Mar 29, 2020

Pull Request Test Coverage Report for Build 2146

  • 4 of 18 (22.22%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.02%) to 52.63%

Changes Missing Coverage Covered Lines Changed/Added Lines %
demisto_sdk/commands/run_cmd/runner.py 4 18 22.22%
Totals Coverage Status
Change from base Build 2145: -0.02%
Covered Lines: 3382
Relevant Lines: 6426

💛 - Coveralls


answer = self.client.investigation_add_entries_sync(update_entry=update_entry)
if not answer:
raise RuntimeError
Copy link
Contributor

Choose a reason for hiding this comment

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

don't raise a class, raise an object (with a proper descriptive message)

Copy link
Member Author

Choose a reason for hiding this comment

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

correct.
fixed it, error looks ok.

(py37) ➜  content git:(securonix1_assign) ✗ demisto-sdk run -q 'securonix-list-incidentsss'
You are using demisto-sdk 0.4.9.dev14, however version 0.4.8 is available.
You should consider upgrading via "pip3 install --upgrade demisto-sdk" command.
Command did not run, make sure it was written correctly.

@bakatzir bakatzir requested a review from yaakovi March 29, 2020 20:02
@bakatzir bakatzir merged commit 7a1df0f into master Mar 29, 2020
@bakatzir bakatzir deleted the runner_err branch March 29, 2020 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants