MinnPost / legislature-tracker

An application that pulls in Open States data and combines with editorial expertise to create a live view into a state legislature session.
http://minnpost.github.io/legislature-tracker/
Other
30 stars 17 forks source link

Incorrectbillnumerrormsg #15

Closed jeremybmerrill closed 11 years ago

jeremybmerrill commented 11 years ago

to fix #13.

Console.log a more helpful msg when the updated_time can't be gotten from OpenStates, most likely because the bill number is incorrectly formatted (see #13) for examples.

zzolo commented 11 years ago

So, this is good, except that console is not available in all browsers (cough IE). There are two way sof going about this:

  1. We can throw an error with throw "blah", though this will be pretty harsh and may break the whole app.
  2. Or we can wrap console.log into a LT.log function that first checks if it exists.