Skip to content

CLI returns successful (exit code 0) when input file is missing #3994

@jarpoole

Description

@jarpoole

Description

The CLI correctly prints an error but then doesn't not exit with an error status meaning that CI tooling fails to report breakage caused by changes in config

Reproducible example or configuration

npx @hey-api/openapi-ts@v0.98.1 -i does_not_exist.json -o ./sdk
echo $#

Output:

@hey-api/openapi-ts v0.98.1

[Job 1] ~ Generating...
[Job 1] [1] does_not_exist.json
[Job 1] ❌ Input file not found:
/Users/jarpoole//test.json

Please verify that:
• The file exists
• The path is correct
• You have read permissions

0

System information (optional)

MacOS Tahoe
Node 24

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🔥Broken or incorrect behavior.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions