update panic message/docstring

This commit is contained in:
tahahawa 2025-05-15 12:09:02 -04:00
parent 5482009948
commit 9418f3b964

View File

@ -117,7 +117,7 @@ pub fn yaml(input: TokenStream) -> TokenStream {
.into()
}
/// Verify that a string is a valid(ish) kubernetes path
/// Verify that a string is a valid(ish) ingress path
/// Panics if path does not start with `/`
#[proc_macro]
pub fn ingress_path(input: TokenStream) -> TokenStream {
@ -129,6 +129,6 @@ pub fn ingress_path(input: TokenStream) -> TokenStream {
let expanded = quote! {(#path_str.to_string()) };
return TokenStream::from(expanded);
}
false => panic!("Invalid k8s ingress path"),
false => panic!("Invalid ingress path"),
}
}