ÿØÿàJFIFÿáExifMM*ÿÛC  Dre4m Was Here
Dre4m Shell
Server IP : 199.250.214.225  /  Your IP : 3.137.187.88
Web Server : Apache
System : Linux vps64074.inmotionhosting.com 3.10.0-1160.105.1.vz7.214.3 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : nicngo5 ( 1001)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /home/nicngo5/cms/node_modules/iferr/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/nicngo5/cms/node_modules/iferr//index.coffee
# Delegates to `succ` on sucecss or to `fail` on error
# ex: Thing.load 123, iferr cb, (thing) -> ...
iferr = (fail, succ) -> (err, a...) ->
  if err? then fail err
  else succ? a...

# Like iferr, but also catches errors thrown from `succ` and passes to `fail`
tiferr = (fail, succ) -> iferr fail, (a...) ->
  try succ a...
  catch err then fail err

# Delegate to the success function on success, or throw the error otherwise
# ex: Thing.load 123, throwerr (thing) -> ...
throwerr = iferr.bind null, (err) -> throw err

# Prints errors when one is passed, or does nothing otherwise
# ex: thing.save printerr
printerr = iferr (err) -> console.error err.stack or err

module.exports = exports = iferr
exports.iferr = iferr
exports.tiferr = tiferr
exports.throwerr = throwerr
exports.printerr = printerr

Anon7 - 2022
AnonSec Team