Skip to content

Missing process.exit(1) in publish request/status error handlers #94

Closed

Description

@neuromechanist

Bug

The publish request and publish status command error handlers do not call process.exit(1) on failure, unlike every other command in dataset.ts. This means the CLI exits with code 0 on failure, which breaks scripts and automation that check exit codes.

Location: src/commands/dataset.ts, publish request handler (~line 1438) and publish status handler (~line 1551)

Impact: A CI pipeline running nemar dataset publish request nm000104 && echo "Success" would see "Success" even when the request failed.

Fix: Add process.exit(1) to the catch blocks, matching the pattern used by all other commands.

Found during PR #93 review.

Activity

  1. added
    bug
    on Feb 2, 2026
  2. neuromechanist commented on May 14, 2026

    @neuromechanist
    ContributorAuthor

    Merged via PR #468.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions