VirtuOz/node-dynamic-module-loader — pull request #8 by kdunsmore (2013-12-21 00:11:20+00:00)
Title: Do not write multiple error packages

Modified the dynamic module loader to prevent creation of multiple ERROR packages. Non-error behavior remains unchanged. Error behavior has changed to:

1. Upon first error of named package, rename downloaded expanded module dir to have -ERROR suffix. Random character string no longer appended to directory name. Operation will fail with error as before.
2. Upon subsequent errors during download / install operations for the same package, the initial -ERROR package remains. The downloaded package is deleted.

Summary is that only the FIRST error package is preserved. Subsequent packages are deleted.