I'm assuming you are using WebDepositField.add_message('...', state='danger'). Initially it was simple with bootstrap2, since the states mapped directly to bootstrap 2. With bootstrap 3, error was changed to danger.

I don't think error and danger should both be in the list - that would mean we have two states semantically meaning the same. Either WebDepositField.add_message should use 'danger' instead of 'error', or form.js should map error to danger. Not sure what is best.