Skip to content

Commit

Permalink
Transform error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Jun 1, 2024
1 parent 6cda9a6 commit b47ead1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lib/polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

'use strict';

var format = require('@stdlib/error-tools-fmtprodmsg');

// TODO: write polyfill

// MAIN //
Expand All @@ -28,10 +30,9 @@
* @throws {Error} not implemented
*/
function polyfill() {
throw new Error( 'not implemented' );
throw new Error( format('00x00') );
}


// EXPORTS //

module.exports = polyfill;
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"url": "https://github.com/stdlib-js/stdlib/issues"
},
"dependencies": {
"@stdlib/assert-has-int16array-support": "^0.2.1"
"@stdlib/assert-has-int16array-support": "^0.2.1",
"@stdlib/error-tools-fmtprodmsg": "^0.2.1"
},
"devDependencies": {
"@stdlib/assert-has-property": "^0.2.1",
Expand Down Expand Up @@ -94,4 +95,4 @@
"type": "opencollective",
"url": "https://opencollective.com/stdlib"
}
}
}

0 comments on commit b47ead1

Please sign in to comment.