mirror of https://github.com/rwf2/Rocket.git
Fix mountpoint in 'mount_point' test.
This commit is contained in:
parent
bbeb95357b
commit
d8acd04789
|
@ -492,7 +492,7 @@ impl Rocket {
|
|||
|
||||
if base.contains('<') || !base.starts_with('/') {
|
||||
error_!("Bad mount point: '{}'.", base);
|
||||
error_!("Mount points must be absolute URIs with static paths!");
|
||||
error_!("Mount points must be static, absolute URIs: `/example`");
|
||||
panic!("Bad mount point.")
|
||||
}
|
||||
|
||||
|
|
|
@ -8,5 +8,5 @@ fn bad_dynamic_mount() {
|
|||
|
||||
#[test]
|
||||
fn good_static_mount() {
|
||||
rocket::ignite().mount("abcdefghijkl_mno", vec![]);
|
||||
rocket::ignite().mount("/abcdefghijkl_mno", vec![]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue