mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2025-06-11 18:43:22 +02:00
Add control for errors.
This commit is contained in:
@ -5,9 +5,9 @@ Cypress.on('window:before:load', (win) => {
|
||||
cy.spy(win.console, 'warn');
|
||||
});
|
||||
|
||||
// // afterEach(() => {
|
||||
// // cy.window().then((win) => {
|
||||
// // expect(win.console.error).to.have.callCount(0);
|
||||
// // expect(win.console.warn).to.have.callCount(0);
|
||||
// // });
|
||||
// afterEach(() => {
|
||||
// cy.window().then((win) => {
|
||||
// expect(win.console.error).to.have.callCount(0);
|
||||
// expect(win.console.warn).to.have.callCount(0);
|
||||
// });
|
||||
// });
|
||||
|
@ -88,7 +88,7 @@ const Editor = ({
|
||||
model.registerEvents(setCanvasUpdate, capability);
|
||||
})
|
||||
.catch((e) => {
|
||||
console.error(e);
|
||||
console.error(JSON.stringify(e));
|
||||
window.newrelic?.noticeError(
|
||||
new Error(`Unexpected error loading map ${mapInfo.getId()} = ${JSON.stringify(e)}`),
|
||||
);
|
||||
|
Reference in New Issue
Block a user