Create-error.js – A simple helper for subclassed errors in Javascript

  • I don't understand why this is more useful than just creating an object and settings its prototype to `Error`.

    Anyone care to explain?