Added a sampleError.js to illustrate bug found.