Log catch errors as console.error

This commit is contained in:
Paulo Gustavo Veiga 2022-02-12 08:39:33 -08:00
parent 8cb9b910f2
commit dd180cf0b7
2 changed files with 1 additions and 3 deletions

View File

@ -44,7 +44,7 @@ export function buildDesigner(options: DesignerOptions): Designer {
`Line: ${lineNo}`, `Line: ${lineNo}`,
`Column: ${columnNo}`, `Column: ${columnNo}`,
].join(' - '); ].join(' - ');
console.log(message); console.error(message);
// Send error to server ... // Send error to server ...
$.ajax({ $.ajax({
@ -58,7 +58,6 @@ export function buildDesigner(options: DesignerOptions): Designer {
mapId: options.mapId, mapId: options.mapId,
}), }),
}); });
// Open error dialog only in case of mindmap loading errors. The rest of the error are reported but not display the dialog. // Open error dialog only in case of mindmap loading errors. The rest of the error are reported but not display the dialog.
// Remove this in the near future. // Remove this in the near future.
if (!globalThis.mindmapLoadReady) { if (!globalThis.mindmapLoadReady) {

View File

@ -14,7 +14,6 @@ const EditorPage = ({ mapId, ...props }: EditorPropsType): React.ReactElement =>
// Load user locale ... // Load user locale ...
const userLocale = AppI18n.getUserLocale(); const userLocale = AppI18n.getUserLocale();
console.log("Locale:" + userLocale.code);
return <> return <>
<Editor {...props} onAction={setActiveDialog} locale={userLocale.code} /> <Editor {...props} onAction={setActiveDialog} locale={userLocale.code} />