Skip to content

Fix: Handle undefined backup directory in import plugin when module throws an error#2040

Merged
aman19K merged 2 commits intostagingfrom
fix/backupdir-undefined-issue
Aug 4, 2025
Merged

Fix: Handle undefined backup directory in import plugin when module throws an error#2040
aman19K merged 2 commits intostagingfrom
fix/backupdir-undefined-issue

Conversation

@aman19K
Copy link
Contributor

@aman19K aman19K commented Aug 4, 2025

Root Cause
The backupDir variable was only being set after moduleImporter.start() completed successfully. When an error occurred during the import process, this assignment never happened, leaving backupDir as undefined.

@aman19K aman19K requested a review from a team as a code owner August 4, 2025 05:58
@aman19K aman19K merged commit 91ef965 into staging Aug 4, 2025
10 checks passed
@aman19K aman19K deleted the fix/backupdir-undefined-issue branch August 4, 2025 06:08
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