Skip to content

Commit 335774c

Browse files
committed
Fix lain yaml error msg
1 parent 44f3bdf commit 335774c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lain_cli/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ def help_message(self):
4545
def get_lain_yaml_path(stage=None):
4646
if stage is None:
4747
return LAIN_YAML_PATH
48-
return "lain.%s.yaml" % stage
48+
return "./lain.%s.yaml" % stage
4949

5050

5151
def lain_yaml_data(stage=None):
5252
lain_yaml_path = get_lain_yaml_path(stage=stage)
5353
if not os.path.exists(lain_yaml_path):
54-
error('Missing lain.yaml under current directory')
54+
error('Missing %s under current directory' % lain_yaml_path)
5555
sys.exit(1)
5656
with open(lain_yaml_path) as f:
5757
data = f.read()
@@ -61,7 +61,7 @@ def lain_yaml_data(stage=None):
6161
def lain_yaml(ignore_prepare=False, stage=None):
6262
lain_yaml_path = get_lain_yaml_path(stage=stage)
6363
if not os.path.exists(lain_yaml_path):
64-
error('Missing lain.yaml under current directory')
64+
error('Missing %s under current directory' % lain_yaml_path)
6565
sys.exit(1)
6666
return LainYaml(lain_yaml_path, ignore_prepare=ignore_prepare)
6767

0 commit comments

Comments
 (0)