dump JSON.stringified error on HAWK.signCertificate error

This commit is contained in:
Mark Hammond 2013-12-19 16:38:35 +11:00
parent 96724917cd
commit 86a705e741

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;});
},