Permalink
Browse files

[ClassLoader] Improve exception messages of the debug class loader

  • Loading branch information...
1 parent 81cb3c9 commit c00f87add0823f8f71c4f572595152bf7b2b2daf @Seldaek Seldaek committed Jul 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 DebugUniversalClassLoader.php
@@ -55,7 +55,7 @@ public function loadClass($class)
require $file;
if (!class_exists($class, false) && !interface_exists($class, false)) {
- throw new \RuntimeException(sprintf('The autoloader expected class "%s" to be defined in file "%s". You probably have a typo in the namespace or the class name.', $class, $file));
+ throw new \RuntimeException(sprintf('The autoloader expected class "%s" to be defined in file "%s". The file was found but the class was not in it, the class name or namespace probably has a typo.', $class, $file));
}
}
}

0 comments on commit c00f87a

Please sign in to comment.