Skip to content

throw error if provided cwd doesn't exist#6105

Open
Abhinav5383 wants to merge 3 commits intoUnitech:developmentfrom
Abhinav5383:development
Open

throw error if provided cwd doesn't exist#6105
Abhinav5383 wants to merge 3 commits intoUnitech: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
Copy link
Copy Markdown

CLAassistant commented Apr 8, 2026

CLA assistant check
All committers have signed the CLA.

@Abhinav5383 Abhinav5383 changed the title Development throw error if provided cwd doesn't exist Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants