mirror of
https://github.com/Instadapp/Swap-Aggregator-Subgraph.git
synced 2024-07-29 21:57:12 +00:00
14 lines
326 B
JavaScript
14 lines
326 B
JavaScript
var explain = require('./')
|
|
|
|
function explainedError(cb) {
|
|
require('fs').stat('neoatuhrcoahkrcophkr', function (err) {
|
|
if(err) cb(explain(err, 'asked for a file that certainly did not exist'))
|
|
else cb()
|
|
})
|
|
}
|
|
|
|
explainedError(function (err) {
|
|
throw explain(err, 'called an function that was expected to fail')
|
|
})
|
|
|