closes #546, errors should always be logged to the error console

currently, errors that happen during detection (as opposed to translation) are not logged, since it might not be desirable to flood the error console if a site changes its layout in a way that produces errors in the detectCode. if there are any objections, this behavior is easy to change.
This commit is contained in:
Simon Kornblith 2007-03-21 14:30:30 +00:00
parent 2ea61cf379
commit 9170603b88

View File

@ -886,6 +886,10 @@ Zotero.Translate.prototype._translationComplete = function(returnValue, error) {
this._closeStreams();
if(!returnValue) {
// report error to console
Components.utils.reportError(error);
// report error to debug log
var errorString = this._generateErrorString(error);
this._debug("Translation using "+(this.translator && this.translator[0] && this.translator[0].label ? this.translator[0].label : "no translator")+" failed: \n"+errorString);