8000 ELP should return error code in case of project issues · Issue #40 · WhatsApp/eqwalizer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
ELP should return error code in case of project issues #40
Closed
@egobrain

Description

@egobrain

Hello, is there a way to make elp return a non-zero code if errors are found ?
This will allow elp to be easily integrated with ci-tools.

$  elp eqwalize-all
  Loading rebar3 build_info
  Loading applications      ████████████████████ 17/17
  Seeding database
  Compiling dependencies
  eqWAlized                 ████████████████████ 24/24                                                                                                                                                                                                         error: expected_subtype
   ┌─ src/client/oidc_client.erl:69:13
   │
69 │             {error, unavailable};
   │             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
   │             │
   │             {'error', 'unavailable'}.
Expected: {'ok', oidc:claims()} | {'error', oidc:token_info_error()}
Got     : {'error', 'unavailable'}

   │

  {'error', 'unavailable'} is not a subtype of {'ok', oidc:claims()} | {'error', oidc:token_info_error()}
  because
  at tuple index 1:
  {'error', 'unavailable'} is not a subtype of {'ok', oidc:claims()}
  because
  'error' is not a subtype of 'ok'
  
$ echo $?
0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0