added some code to improve the error message and added test for that
-rw-r--r-- Changes
-rw-r--r-- MANIFEST.SKIP
-rw-r--r-- Makefile.PL
drwxr-xr-x lib
drwxr-xr-x t-author
drwxr-xr-x t