Skip to content

throw error if provided cwd doesn't exist#6105

Open
Abhinav5383 wants to merge 3 commits into
Unitech:developmentfrom
Abhinav5383:development
Open

throw error if provided cwd doesn't exist#6105
Abhinav5383 wants to merge 3 commits into
Unitech:developmentfrom
Abhinav5383:development

Conversation

@Abhinav5383

Copy link
Copy Markdown
Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes

If pm2 is given an invalid cwd, it silently fails. The status keeps showing as process online, but the process doesn't start.

ss01

This PR adds a check to make sure the provided cwd is valid, otherwise returns an error.
I have also added a test case for this.

@CLAassistant

CLAassistant commented Apr 8, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@Abhinav5383 Abhinav5383 changed the title Development Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants