Improved logging if there's a non-empty-newdoc

pull/1/head
Caleb James DeLisle 7 years ago
parent d9323cc458
commit cbd7351d53

@ -259,9 +259,11 @@ define([
// We're getting 'new pad' but there is an existing file // We're getting 'new pad' but there is an existing file
// We don't know exactly why this can happen but under no circumstances // We don't know exactly why this can happen but under no circumstances
// should we overwrite the content, so lets just try again. // should we overwrite the content, so lets just try again.
console.log("userDoc is '' but this is not a new pad, something is " + console.log("userDoc is '' but this is not a new pad.");
"terribly wrong, reloading."); console.log("Either this is an empty document which has not been touched");
common.gotoURL(); console.log("Or else something is terribly wrong, reloading.");
Feedback.send("NON_EMPTY_NEWDOC");
setTimeout(function () { common.gotoURL(); }, 1000);
return; return;
} }
console.log('updating title'); console.log('updating title');

Loading…
Cancel
Save