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
thrownewError(`Failed to resolve plugin '${packageName}': ${e}`);
19
+
thrownewObjectQLError({code: 'CONFIG_ERROR',message: `Failed to resolve plugin '${packageName}': ${e}`});
19
20
}
20
21
21
22
// Helper to check if candidate is a PluginDefinition
@@ -74,6 +75,6 @@ export function loadPlugin(packageName: string): PluginDefinition {
74
75
returninstance;
75
76
}else{
76
77
console.error(`[PluginLoader] Failed to find plugin in '${packageName}'. Exports:`,Object.keys(mod));
77
-
thrownewError(`Plugin '${packageName}' must export a PluginDefinition with lifecycle hooks (onEnable, onDisable, etc.).`);
78
+
thrownewObjectQLError({code: 'CONFIG_ERROR',message: `Plugin '${packageName}' must export a PluginDefinition with lifecycle hooks (onEnable, onDisable, etc.).`});
thrownewError('Config file must export an ObjectQL instance as default export or named export (app/objectql/db)');
312
+
thrownewObjectQLError({code: 'CONFIG_ERROR',message: 'Config file must export an ObjectQL instance as default export or named export (app/objectql/db)'});
0 commit comments