update panic message/docstring
This commit is contained in:
parent
5482009948
commit
9418f3b964
@ -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"),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user