Improve error message.

This commit is contained in:
Paulo Gustavo Veiga 2022-03-09 10:55:33 -08:00
parent 16be3acbdf
commit 842a91dbc7

View File

@ -620,7 +620,7 @@ export default class RestClient implements Client {
if (editorMode === 'edition-owner' || editorMode === 'edition-editor') {
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({