Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unwanted Error line for 0.3.7 #150

Closed
chfw opened this issue Jan 5, 2019 · 3 comments
Closed

Unwanted Error line for 0.3.7 #150

chfw opened this issue Jan 5, 2019 · 3 comments

Comments

@chfw
Copy link
Member

chfw commented Jan 5, 2019

$ export TEST="abc"
$ cat abc.jj2
{{TEST}}
$ moban -t abc.jj2 
Error: Both data.yml and /private/tmp/.moban.cd/data.yml does not exist
Attempting to use environment vars as data...
Templating abc.jj2 to moban.output

#149

@chfw
Copy link
Member Author

chfw commented Jan 5, 2019

Error: Both data.yml and /private/tmp/.moban.cd/data.yml does not exist

@CLiu13
Copy link
Collaborator

CLiu13 commented Jan 5, 2019

I intended for the error message to be printed (rather than raised as an exception) just to let the user know that those files do not exist, because the command moban -t abc.jj2 implies that they want to use the default data.yml file - then, if they don't exist, moban will try to use environment variables.

However, I can remove that error from being printed if you want.

@chfw
Copy link
Member Author

chfw commented Jan 5, 2019

Yep, changing it to "info" now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants