Skip to content

Commit 226d81c

Browse files
committed
fixup: better messaging for the error when exporting schema and there's no analyzed schema
1 parent abfb001 commit 226d81c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/compass-schema/src/stores/schema-export-reducer.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,9 @@ export const changeExportSchemaFormat = (
238238
try {
239239
const schemaAccessor = schemaAccessorRef.current;
240240
if (!schemaAccessor) {
241-
throw new Error('No schema analysis available');
241+
throw new Error(
242+
"No schema analysis available. Please analyze the collection's schema before exporting."
243+
);
242244
}
243245

244246
exportedSchema = await getSchemaByFormat({

0 commit comments

Comments
 (0)