You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message: `Your data for script '${module.name}' is empty, please add types for module '${module.name}'. We can't infer the database types from an empty result.`,
291
-
}),
292
-
);
287
+
yield*newConvertDataToSQLDDLError({
288
+
cause: null,
289
+
message: `Your data for script '${module.name}' is empty, please add types for module '${module.name}'. We can't infer the database types from an empty result.`,
290
+
});
293
291
}
294
292
yield*Effect.logDebug(
295
293
`No database types provided for module '${module.name}', inferring from first item in result data.`,
yield*Effect.logError("Invalid script run result: ",result);
386
-
yield*Effect.fail(
387
-
newDatabaseInsertError({
388
-
cause: null,
389
-
message: `Module '${module.name}' does not match expected schema, make sure your run function returns an object with the following shape: ${ScriptResultSchema.toString()}`,
390
-
}),
391
-
);
384
+
yield*newDatabaseInsertError({
385
+
cause: null,
386
+
message: `Module '${module.name}' does not match expected schema, make sure your run function returns an object with the following shape: ${ScriptResultSchema.toString()}`,
387
+
});
392
388
}
393
389
if(!moduleIsValidSchema){
394
390
yield*Effect.logError(
395
391
"Invalid module export: ",
396
392
// We are going to assume that people at least provided a name
397
393
(moduleasTypefusionScriptExport).name,
398
394
);
399
-
yield*Effect.fail(
400
-
newDatabaseInsertError({
401
-
cause: null,
402
-
// We are going to assume that people at least provided a name
403
-
message: `Module '${(moduleasTypefusionScriptExport).name}' does not match expected schema, make sure your script returns an object with the following shape: ${ScriptExportSchema.toString()}`,
404
-
}),
405
-
);
395
+
yield*newDatabaseInsertError({
396
+
cause: null,
397
+
// We are going to assume that people at least provided a name
398
+
message: `Module '${(moduleasTypefusionScriptExport).name}' does not match expected schema, make sure your script returns an object with the following shape: ${ScriptExportSchema.toString()}`,
0 commit comments