Fix mountpoint in 'mount_point' test.

This commit is contained in:
Sergio Benitez 2017-09-11 01:14:44 -07:00
parent bbeb95357b
commit d8acd04789
2 changed files with 2 additions and 2 deletions

View File

@ -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.")
}

View File

@ -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![]);
}