Improve error message.

This commit is contained in:
Paulo Gustavo Veiga 2022-03-09 10:55:33 -08:00
parent 2d1d0a8790
commit c6dd04b86f

View File

@ -620,7 +620,7 @@ export default class RestClient implements Client {
if (editorMode === 'edition-owner' || editorMode === 'edition-editor') { if (editorMode === 'edition-owner' || editorMode === 'edition-editor') {
if (!global.lockSession) { if (!global.lockSession) {
throw new Error(`Session could not be found: global.lockSession ${global.lockSession} - global.lockTimestamp: ${global.lockTimestamp} - ${global.mindmapLocked} - ${global.mindmapLockedMsg}`) throw new Error(`Session could not be found: global.lockSession: '${global.lockSession}' - global.lockTimestamp: '${global.lockTimestamp}' - ${global.mindmapLocked} - ${global.mindmapLockedMsg}`)
} }
persistence = new RESTPersistenceManager({ persistence = new RESTPersistenceManager({