Move "Can't find fig.yml" error into errors.py

This commit is contained in:
Aanand Prasad 2014-02-26 15:44:06 +00:00
commit d7c714e1c6
2 changed files with 9 additions and 5 deletions

View file

@ -51,3 +51,10 @@ Couldn't connect to Docker daemon at %s - is it running?
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.
""" % url)
class FigFileNotFound(UserError):
def __init__(self, filename):
super(FigFileNotFound, self).__init__("""
Can't find %s. Are you in the right directory?
""" % filename)