Better logging if we trigger the doc emptystring issue

This commit is contained in:
Caleb James DeLisle
2017-12-18 18:28:48 +01:00
parent 7842c730a4
commit 3c0806659b
2 changed files with 2 additions and 18 deletions

View File

@@ -259,6 +259,8 @@ define([
// We're getting 'new pad' but there is an existing file
// We don't know exactly why this can happen but under no circumstances
// should we overwrite the content, so lets just try again.
console.log("userDoc is '' but this is not a new pad, something is " +
"terribly wrong, reloading.");
common.gotoURL();
return;
}