From d8acd04789d23e956b5b97d2fb8c71b4d9ddffd5 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Mon, 11 Sep 2017 01:14:44 -0700 Subject: [PATCH] Fix mountpoint in 'mount_point' test. --- lib/src/rocket.rs | 2 +- lib/tests/mount_point.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/rocket.rs b/lib/src/rocket.rs index 6432b987..32ca0465 100644 --- a/lib/src/rocket.rs +++ b/lib/src/rocket.rs @@ -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.") } diff --git a/lib/tests/mount_point.rs b/lib/tests/mount_point.rs index 9973adf6..99d8dd92 100644 --- a/lib/tests/mount_point.rs +++ b/lib/tests/mount_point.rs @@ -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![]); }