Log some extra debug output for sync error

This commit is contained in:
Dan Stillman 2009-12-25 00:33:34 +00:00
parent 764b8d3618
commit f2ac59f95c

View file

@ -4312,6 +4312,18 @@ Zotero.Item.prototype._loadCreators = function() {
*/
Zotero.Item.prototype._loadItemData = function() {
if (!this.id) {
// Log backtrace and data
try {
asfasfsa();
}
catch (e) {
Zotero.debug(e);
Zotero.debug(this._itemTypeID);
Zotero.debug(this._libraryID);
Zotero.debug(this._key);
Zotero.debug(this._dateAdded);
Zotero.debug(this._dateModified);
}
throw ('ItemID not set for object before attempting to load data');
}