|
|
|
@ -1814,9 +1814,7 @@ export class AtImportProcessor {
|
|
|
|
|
req: { user: syncDB.user, clientIp: '' }, |
|
|
|
|
}) |
|
|
|
|
.catch((e) => |
|
|
|
|
e.response?.data?.msg |
|
|
|
|
? logBasic(`NOTICE: ${e.response.data.msg}`) |
|
|
|
|
: console.log(e), |
|
|
|
|
e.message ? logBasic(`NOTICE: ${e.message}`) : console.log(e), |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
recordPerfStats(_perfStart, 'auth.projectUserAdd'); |
|
|
|
@ -2400,12 +2398,12 @@ export class AtImportProcessor {
|
|
|
|
|
await generateMigrationStats(aTblSchema); |
|
|
|
|
} |
|
|
|
|
} catch (e) { |
|
|
|
|
if (e.response?.data?.msg) { |
|
|
|
|
if (e.message) { |
|
|
|
|
T.event({ |
|
|
|
|
event: 'a:airtable-import:error', |
|
|
|
|
data: { error: e.response.data.msg }, |
|
|
|
|
data: { error: e.message }, |
|
|
|
|
}); |
|
|
|
|
throw new Error(e.response.data.msg); |
|
|
|
|
throw new Error(e.message); |
|
|
|
|
} |
|
|
|
|
throw e; |
|
|
|
|
} |
|
|
|
|