Skip to content

Commit e1302f7

Browse files
committed
feat: enhance install_node_wrapped with error handling and extensive tests. fixes #336
- Added error handling to raise exceptions on download failures in install_node_wrapped. - Introduced a comprehensive test suite for install_node_wrapped, covering successful installations, fallback mechanisms, and error scenarios. - Ensured that no copy or build actions are performed after download failures, improving robustness.
1 parent d9ddf43 commit e1302f7

2 files changed

Lines changed: 431 additions & 0 deletions

File tree

nodeenv.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,7 @@ def install_node_wrapped(env_dir, src_dir, args):
795795
src_dir, args)
796796
else:
797797
logger.warning('Failed to download from %s' % node_url)
798+
raise
798799

799800
logger.info('.', extra=dict(continued=True))
800801

0 commit comments

Comments
 (0)