Skip to content

Commit a1ddd87

Browse files
committed
fix: change error-code to variant
1 parent f77598e commit a1ddd87

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

proposals/cli/wit-0.3.0-draft/deps.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ sha512 = "f08a2828b88fc6ddea935af584531c484ad4a7a5f30340265e11e91b2bfe0f81e74a66
55

66
[filesystem]
77
path = "../../filesystem/wit-0.3.0-draft"
8-
sha256 = "184861e98785957311bfaab242cdf9e66a9ecca11fe2c493b840c461b2361088"
9-
sha512 = "50fa8801fc0a2c1ecfa3cea52af57836f98a12bb0a264439c13bbdcc0e269b3b37ade38b903d6ce10594d1f585d02ef993f3f769c4cddeebdfc00bf93734ed25"
8+
sha256 = "34bc01576895f955af8f55c67ae45445b092645af1939cf3535159285338cbb2"
9+
sha512 = "3b666d90f2e1d1b3d4229d5c6b24e4b044f901cbfee3c6309f1548571361ad59ba1a344200bf443800a7f0d4babbd4613f99266fff490b33a75c5b74928e1ffd"
1010

1111
[random]
1212
path = "../../random/wit-0.3.0-draft"
@@ -15,5 +15,5 @@ sha512 = "812ce57aa13ff3128779d41f4dad50714365e4f9cfd2e1b13458a885fa65da05e409f1
1515

1616
[sockets]
1717
path = "../../sockets/wit-0.3.0-draft"
18-
sha256 = "985821e86f2643d90b7a100420a44a5a60a6838adcf76fdb90a66255e3926dde"
19-
sha512 = "9ba1e9456c0dc02800ba738acd382a4113103bed72127396546c5f0ad3d38dd5c8e077443bd508b15f86f6095706907e9cb258cccab37c273b4c597a238987e7"
18+
sha256 = "0be70fab90ec1d62e620f37f8fc55397222ceb68ca8387eb0503df7173782634"
19+
sha512 = "997e336258dd3d8d1bf1b27463e77d1dc2160eb13fff899c93b446973f5efbc59448a23279b60568679c08e006a20cc88769ec74d6d30baa4e7a17df0bdb2c30"

proposals/filesystem/wit-0.3.0-draft/types.wit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ interface types {
192192
/// API; some are used in higher-level library layers, and others are provided
193193
/// merely for alignment with POSIX.
194194
@since(version = 0.3.0-rc-2026-02-09)
195-
enum error-code {
195+
variant error-code {
196196
/// Permission denied, similar to `EACCES` in POSIX.
197197
access,
198198
/// Connection already in progress, similar to `EALREADY` in POSIX.
@@ -268,7 +268,7 @@ interface types {
268268
/// A catch-all for errors not captured by the existing variants.
269269
/// Implementations can use this to extend the error type without
270270
/// breaking existing code.
271-
other,
271+
other(option<string>),
272272
}
273273

274274
/// File or memory access pattern advisory information.

0 commit comments

Comments
 (0)