dump JSON.stringified error on HAWK.signCertificate error

This commit is contained in:
Mark Hammond 2013-12-19 16:38:35 +11:00
parent c8e0341c3c
commit 99c6903868

View File

@ -187,7 +187,7 @@ this.FxAccountsClient.prototype = {
return Promise.resolve()
.then(_ => this._request("/certificate/sign", "POST", creds, body))
.then(resp => resp.cert,
err => {dump("HAWK.signCertificate error: " + err + "\n");
err => {dump("HAWK.signCertificate error: " + JSON.stringify(err) + "\n");
throw err;});
},