From 79b443187ee06d8ee7eedc29012e2b68235e3cd1 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 4 Jan 2012 17:52:12 -0600 Subject: use filenames in the "from" part too this also stops using "caller", which can produce incorrect results if there are multiple packages in a file, or if you follow it up too far (saying that the cycle is from 'main' isn't correct) --- t/hide_middleman.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/hide_middleman.t') diff --git a/t/hide_middleman.t b/t/hide_middleman.t index 72fa9c6..90950b2 100644 --- a/t/hide_middleman.t +++ b/t/hide_middleman.t @@ -16,7 +16,7 @@ my @warnings; is_deeply( \@warnings, - ["Circular require detected: Foo.pm (from Bar)\n"], + ["Circular require detected: Foo.pm (from Bar.pm)\n"], "Show the module that used base, instead of 'base' when a cycle occurs from a use base." ); -- cgit v1.2.3-54-g00ecf