Skip to content

Commit ad4ec7c

Browse files
committed
fix: change error-code to variant
1 parent e45ab0f commit ad4ec7c

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 = "8808ea3adfbc1a025d649b82ddf4f38232ca4377100cfe671d80d5ee37fa3147"
9-
sha512 = "19f4eb8fa62e96ba37b3ea231af6a3bc396c28f82935018a3322441321936b34fb0e44360b378145fcb681d9fea810745969d8baab02ae6017be1784be8abe45"
8+
sha256 = "34bc01576895f955af8f55c67ae45445b092645af1939cf3535159285338cbb2"
9+
sha512 = "3b666d90f2e1d1b3d4229d5c6b24e4b044f901cbfee3c6309f1548571361ad59ba1a344200bf443800a7f0d4babbd4613f99266fff490b33a75c5b74928e1ffd"
1010

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

1616
[sockets]
1717
path = "../../sockets/wit-0.3.0-draft"
18-
sha256 = "5e7010b31fc80b5484cdcad7bfaae9dbb2134d3debfa6a90c69c30ec8cf7d55e"
19-
sha512 = "3863bd53d4ef1815f0f0f48d4032e3232322a3dbfa875eb573df2940264aacfe55d672886323406e5942ffc38ed5ad7dce91fcff3ff1e2e072773bb6dd9c7cd1"
18+
sha256 = "b49fc1dce25d91cb10d4d503c7f9a870a5effabcce609542f1eeabe41500af63"
19+
sha512 = "5007b7df0f421f32db7885fc140c5b68e430f7e0894efcd1152d9a0f2ff18808828dbe6c4d6d3fa88fbfc19bd608ffe1737c0eea3146a8232b2a9ea9a5468427"

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)