Yet more relations purging error debugging

This commit is contained in:
Dan Stillman 2013-11-14 02:31:30 -05:00
parent a688d9ab00
commit 4aa3e77aeb

View File

@ -232,6 +232,9 @@ Zotero.Relations = new function () {
try { try {
Zotero.DB.beginTransaction(); Zotero.DB.beginTransaction();
for each(var uri in uris) { for each(var uri in uris) {
Zotero.debug('===');
Zotero.debug(uri);
// Skip URIs that don't begin with the default prefix, // Skip URIs that don't begin with the default prefix,
// since they don't correspond to local items // since they don't correspond to local items
if (uri.indexOf(prefix) == -1) { if (uri.indexOf(prefix) == -1) {
@ -248,6 +251,7 @@ Zotero.Relations = new function () {
} }
catch (e) { catch (e) {
Zotero.debug(e); Zotero.debug(e);
Zotero.debug(uris);
var rels = Zotero.DB.query("SELECT * FROM relations"); var rels = Zotero.DB.query("SELECT * FROM relations");
for each (let rel in rels) { for each (let rel in rels) {
Zotero.debug(rel); Zotero.debug(rel);