@quenty/promise 10.12.1 → 10.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [10.12.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/promise@10.12.1...@quenty/promise@10.12.2) (2025-12-29)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Add fallback message for promise rejection ([34546af](https://github.com/Quenty/NevermoreEngine/commit/34546af3dde159c855f8933fa227df5d7cd6f333))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [10.12.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/promise@10.12.0...@quenty/promise@10.12.1) (2025-12-29)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/promise",
3
- "version": "10.12.1",
3
+ "version": "10.12.2",
4
4
  "description": "Promise implementation for Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -33,5 +33,5 @@
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "e4614dfea3bf2580ec2b10552c311b273ed1387c"
36
+ "gitHead": "fa1d8d06aa077ddfb6049c8dcb0f20268ac5045d"
37
37
  }
@@ -210,7 +210,13 @@ function Promise.Wait<T...>(self: Promise<T...>): T...
210
210
  coroutine.yield()
211
211
 
212
212
  if self._rejected then
213
- error(tostring(self._rejected[1]), 2)
213
+ local msg = self._rejected[1]
214
+ if msg == nil then
215
+ msg = "Promise rejected with no error message"
216
+ else
217
+ msg = tostring(msg)
218
+ end
219
+ error(msg, 2)
214
220
  elseif self._fulfilled then
215
221
  return table.unpack(self._fulfilled, 1, self._fulfilled.n)
216
222
  else