keenlabs / KeenClient-Node

DEPRECATED - now part of keen-js:
https://github.com/keen/keen-js
Other
67 stars 32 forks source link

Blank writeKey shows incorrect error #2

Closed josephwegner closed 11 years ago

josephwegner commented 11 years ago

If I send the config object with a writeKey (or projectId, for that matter) with a value of "", I get the following error:

Error: You must specify a 'writeKey' in your 'config' object when calling keen.configure()!

This makes it sound like I did not define a writeKey, when in reality it was just blank. Minor issue, but this came up by mistyping my heroku environment variable name... A more explicit error would help in debugging.

dkador commented 11 years ago

Fixed in 0.0.2.