From 7a52ddeba2a68388b544f529d2d92104420f77b0 Mon Sep 17 00:00:00 2001 From: Shipwreckt Date: Fri, 31 Oct 2025 20:02:14 +0000 Subject: Changed from static to 11ty! --- node_modules/luxon/src/impl/invalid.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 node_modules/luxon/src/impl/invalid.js (limited to 'node_modules/luxon/src/impl/invalid.js') diff --git a/node_modules/luxon/src/impl/invalid.js b/node_modules/luxon/src/impl/invalid.js new file mode 100644 index 0000000..2a2c95b --- /dev/null +++ b/node_modules/luxon/src/impl/invalid.js @@ -0,0 +1,14 @@ +export default class Invalid { + constructor(reason, explanation) { + this.reason = reason; + this.explanation = explanation; + } + + toMessage() { + if (this.explanation) { + return `${this.reason}: ${this.explanation}`; + } else { + return this.reason; + } + } +} -- cgit v1.2.3