npm/npm — pull request #6690 by muddletoes (2014-11-12 17:15:11+00:00)
Title: Fix 'er' vs 'err' typo and rename 'er'

The crucial element is a typographical error where `er` occurs instead of `err` on line 36. This was difficult to detect because both `er` and `err` were valid variables in adjacent scopes.

This typo is a bug that must be fixed regardless of who patches it. The result will be an informative error message as originally intended.

In this particular patch, I have also renamed `er` to `outError` to prevent further mistakes, but I am unfamiliar with the project coding standards and do not know if this is conformant.