Updated onError in require.d.ts
Merge pull request #932 from jbaldwin/master

Updated onError in require.d.ts