Previously it was saying the file that didn't exist wasn't valid JSON,
which was confusing.
Change-Id: I8381295ffcaba4e0dbfe9b93bdad80f86c119129
$autoloadClasses = array();
foreach ( $queue as $path => $mtime ) {
$json = file_get_contents( $path );
+ if ( $json === false ) {
+ throw new Exception( "Unable to read $path, does it exist?" );
+ }
$info = json_decode( $json, /* $assoc = */ true );
if ( !is_array( $info ) ) {
throw new Exception( "$path is not a valid JSON file." );