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

For now, the message looks like:

Warning!file_get_contents(C:/work/mage2.pro/store/): failed to open stream: No such file or directory

I propose to make the message more clear, for example:

\Magento\Framework\Filesystem\Directory\Read::readFile: Invalid parameter: the path argument should not be empty.

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