UNPKG

770 BSource Map (JSON)View Raw
1{"version":3,"sources":["CommandError.js"],"names":["CommandError","code","message","err","Error","_isCommandError","isCommandError"],"mappings":";;;;;AAAA,SAASA,YAAT,CAAsBC,IAAtB,EAA4BC,OAA5B,EAAqC;AACnC,MAAIC,MAAM,IAAIC,KAAJ,CAAUF,OAAV,CAAV;AACAC,MAAIF,IAAJ,GAAWA,IAAX;AACAE,MAAIE,eAAJ,GAAsB,IAAtB;AACA,SAAOF,GAAP;AACD;;AAEDH,aAAaM,cAAb,GAA8B,UAASH,GAAT,EAAc;AAC1C,SAAOA,OAAO,CAAC,CAACA,IAAIE,eAApB;AACD,CAFD;;kBAIeL,Y","file":"../CommandError.js","sourcesContent":["function CommandError(code, message) {\n var err = new Error(message);\n err.code = code;\n err._isCommandError = true;\n return err;\n}\n\nCommandError.isCommandError = function(err) {\n return err && !!err._isCommandError;\n};\n\nexport default CommandError;\n"],"sourceRoot":"/exp@57.1.1/src"}
\No newline at end of file