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

clearer error if you try to call librato.increment() without having called librato.start() #31

Open
kevinburkeshyp opened this issue Mar 23, 2015 · 1 comment

Comments

@kevinburkeshyp
Copy link

The message you currently get is TypeError: Cannot read property 'prefix' of undefined which doesn't make it amazingly clear what failed. The undefined is the variable config.

@timanovsky
Copy link

timanovsky commented Jun 22, 2017

My 2c: let actually call librato.increment but make it no-op if configure/start has not been called. Otherwise it is hard to run code in development without librato, and in production with.

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