add getErrorDesc() to stubs.js

missing helper function from initial commit