Page MenuHomePhabricator

console warning contains [object Object]
Closed, ResolvedPublic

Description

CodeEditor tries to set user options when toggle between CodeEditor and normal editor. When this fails e. g. because the user logged of it writes the following warning into the JavaScript console:

Failed to set code editor preference: badtoken
[object Object]

Expected result:

Failed to set code editor preference: badtoken
Invalid token

Details

Related Gerrit Patches:
mediawiki/extensions/CodeEditor : masterFix error message in set user options fail

Event Timeline

Fomafix created this task.Nov 28 2015, 10:40 PM
Fomafix claimed this task.
Fomafix raised the priority of this task from to Low.
Fomafix updated the task description. (Show Details)
Fomafix added a project: CodeEditor.
Fomafix added a subscriber: Fomafix.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 28 2015, 10:40 PM

Change 255911 had a related patch set uploaded (by Gerrit Patch Uploader):
Write error.info instead of "[object Object]" into console

https://gerrit.wikimedia.org/r/255911

Change 255911 merged by jenkins-bot:
Fix error message in set user options fail

https://gerrit.wikimedia.org/r/255911

TheDJ closed this task as Resolved.Nov 29 2015, 10:36 AM
TheDJ removed a project: Patch-For-Review.
TheDJ set Security to None.