Creating Path Based Volumes From Directories That Do Not Exist

When creating path based volumes, does Docker Compose provide any indication or build error for alerting when a specified host folder does not exist?

So in the following example, can an error be surfaced if the relative path ../cache does not exist?

volumes:
  - ./cache:/tmp/cache

I ask because I am new to Docker and it seems that when a build encounters this, it fails silently and continues without as much as a warning, on until a file in /tmp/cache, cannot be found.