(e: any)
| 59 | }; |
| 60 | |
| 61 | const onError = (e: any) => { |
| 62 | const code = e.code || ErrorCode.CollaSyncError; |
| 63 | this.event.onError && this.event.onError({ |
| 64 | ...e, |
| 65 | type: ErrorType.CollaError, |
| 66 | code: code, |
| 67 | message: i18nMessage(code, e.message), |
| 68 | }, getErrorType(code)); |
| 69 | |
| 70 | throw e; |
| 71 | }; |
| 72 | |
| 73 | return (...args: any[]) => { |
| 74 | try { |
no test coverage detected