Skip to content

Commit 24b8f0a

Browse files
authored
Merge pull request #3002 from itowlson/explain-http-export-version-shenanigans
Include guidance in error for non-matching HTTP component export
2 parents 6571862 + eec262a commit 24b8f0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/http/src/trigger.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ impl HandlerType {
6868
`{WASI_HTTP_EXPORT_2023_10_18}`, \
6969
`{WASI_HTTP_EXPORT_2023_11_10}`, \
7070
`{WASI_HTTP_EXPORT_0_2_PREFIX}.*`, \
71-
or `{SPIN_HTTP_EXPORT}` but it exported none of those"
71+
or `{SPIN_HTTP_EXPORT}` but it exported none of those. \
72+
This may mean the component handles a different trigger, or that its `wasi:http` export is newer then those supported by Spin. \
73+
If you're sure this is an HTTP module, check if a Spin upgrade is available: this may handle the newer version."
7274
)
7375
})
7476
}

0 commit comments

Comments
 (0)