8000 [ClassLoader] Improve exception messages of the debug class loader · symfony/symfony@c0571fc · GitHub
[go: up one dir, main page]

Skip to content

Commit c0571fc

Browse files
committed
[ClassLoader] Improve exception messages of the debug class loader
1 parent 5731516 commit c0571fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/ClassLoader/DebugUniversalClassLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function loadClass($class)
5555
694C require $file;
5656

5757
if (!class_exists($class, false) && !interface_exists($class, false)) {
58-
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));
58+
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));
5959
}
6060
}
6161
}

0 commit comments

Comments
 (0)
0