I'd suggest raising SnapcraftEnvironmentError("The directory idontexist doesn't contain a file meta/snap.yaml. If you meant to build a snap in the given folder, cd into the folder instead and re-run Snapcraft."
and ideally also checking the existence of the folder separately for most clarity.
I'd suggest raising SnapcraftEnviro nmentError( "The directory idontexist doesn't contain a file meta/snap.yaml. If you meant to build a snap in the given folder, cd into the folder instead and re-run Snapcraft."
and ideally also checking the existence of the folder separately for most clarity.