.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / yargs / lib / yerror.js
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/yargs/lib/yerror.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/yargs/lib/yerror.js
new file mode 100644 (file)
index 0000000..53375a0
--- /dev/null
@@ -0,0 +1,11 @@
+'use strict'
+function YError (msg) {
+  this.name = 'YError'
+  this.message = msg || 'yargs error'
+  Error.captureStackTrace(this, YError)
+}
+
+YError.prototype = Object.create(Error.prototype)
+YError.prototype.constructor = YError
+
+module.exports = YError