Skip to content

Commit 411e418

Browse files
committed
fix(volo-build): use the global path for exception item when generate the thrift server template
1 parent 22d0d88 commit 411e418

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

volo-build/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "volo-build"
3-
version = "0.11.5"
3+
version = "0.11.6"
44
edition.workspace = true
55
homepage.workspace = true
66
repository.workspace = true

volo-build/src/thrift_backend.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ impl pilota_build::CodegenBackend for VoloThriftBackend {
835835
.join(",");
836836

837837
if let Some(p) = &method.exceptions {
838-
let exception = self.inner.cur_related_item_path(p.did);
838+
let exception = self.inner.codegen_ty(p.did).global_path("volo_gen");
839839
ret_ty = format!("::volo_thrift::MaybeException<{ret_ty}, {exception}>");
840840
}
841841

0 commit comments

Comments
 (0)