Closed aidenkeating closed 6 years ago
@david-martin @wtrocki Would you mind taking a look?
Edit: The changes here are mostly indentation. These are the actual lines: L151, L174-177
@aidenkeating - Awesome contribution. This change may also partially resolve this issue: https://github.com/feedhenry/fh-sync/issues/25
Can you provide verification steps to avoid misunderstandings?
@wtrocki Verification can be done using this PR. https://github.com/feedhenry/fh-sync-server/pull/5
npm link
this fh-sync branch into fh-sync-servernode app.js
curl localhost:3000/sys/info/stats
and ensure the error message is returnedcurl localhost:3000/sys/info/stats
and ensure stats are returnedVerified!
Thanks for review/verification, addressed comments, merging
Published as fh-sync@1.0.10
(https://www.npmjs.com/package/fh-sync)
Currently when calling getStats, if the first sync call has not been made yet, an error will be thrown stating it cannot get
lrange
of undefined.This is a messy error and doesn't explain what is actually going on.
This adds an error message explaining that the client is not initialised and that an initial sync is required.