Why are we logging an error here?  And why are we `debug`ing the string `client.js`?