Skip to content

Commit

Permalink
Merge pull request #3002 from itowlson/explain-http-export-version-sh…
Browse files Browse the repository at this point in the history
…enanigans

Include guidance in error for non-matching HTTP component export
  • Loading branch information
itowlson authored Jan 30, 2025
2 parents 6571862 + eec262a commit 24b8f0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/http/src/trigger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ impl HandlerType {
`{WASI_HTTP_EXPORT_2023_10_18}`, \
`{WASI_HTTP_EXPORT_2023_11_10}`, \
`{WASI_HTTP_EXPORT_0_2_PREFIX}.*`, \
or `{SPIN_HTTP_EXPORT}` but it exported none of those"
or `{SPIN_HTTP_EXPORT}` but it exported none of those. \
This may mean the component handles a different trigger, or that its `wasi:http` export is newer then those supported by Spin. \
If you're sure this is an HTTP module, check if a Spin upgrade is available: this may handle the newer version."
)
})
}
Expand Down

0 comments on commit 24b8f0a

Please sign in to comment.