Skip to content

[Bug]: CLI returns code 0 when in fact there was an error #2110

@pingu2k4

Description

@pingu2k4

What happened?

When any command given to the DAB CLI results in an error, the error is output however the returned code is a code 0, indicating success. It would be more helpful if this was more indicative of an issue in the command, as it makes it far more difficult to automate anything if we can't easily tell the success or failure of a command.

For an example, try running a dab add command, whilst specifying --config and pointing it to a non existent file.

Version

0.9.7+e560142426d1c080b9fd7b7fabff51a276f6bf61

What database are you using?

Azure SQL

What hosting model are you using?

Local (including CLI), Static Web Apps (SWA)

Which API approach are you accessing DAB through?

GraphQL

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    criCustomer Reported issueduplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions