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

Use default config if not in .air.conf file. #15

Closed
frederikhors opened this issue Dec 29, 2018 · 3 comments
Closed

Use default config if not in .air.conf file. #15

frederikhors opened this issue Dec 29, 2018 · 3 comments

Comments

@frederikhors
Copy link

Can we use default config if not specified in .air.conf file?

Example:

air works great without config file, just use air in my cmd and everything works.
But I need to disable time so I create a new file .air.conf with just:

[log]
time = false

in it. Now calling again air doesn't work. It gives an error:

PANIC: runtime error: invalid memory address or nil pointer dereference

I'm on Windows, air installed with go get -u github.com/cosmtrek/air

@cosmtrek
Copy link
Owner

Thanks for your advice. First, I need to fix panic if conf file is invalid. Then I will consider it.

@cosmtrek
Copy link
Owner

@frederikhors I've addressed this problem in the newly released version just now. Could you have a try?

@frederikhors
Copy link
Author

Yes it works now. No more panic error.

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

No branches or pull requests

2 participants