add console.error call to logError

To ensure that logError's occuring in A+ promises are not swallowed, logging must be done instead of just throwing.