The \Magento\Framework\Filesystem\Directory\Read::readFile() method should firsly check whether the $path argument is empty string and raise an exception with a proper and clear message in this case instead of the current cryptic message

See also: Magento 2 loses the problem Less file name in a «Compilation from source / Cannot read contents from file» error report