We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 937fc09 commit 87a551bCopy full SHA for 87a551b
apps/src/metabase/appController.ts
@@ -294,7 +294,11 @@ export class MetabaseController extends AppController<MetabaseAppState> {
294
actionContent.content = `<ERROR>${response.error}</ERROR>`;
295
} else {
296
const asMarkdown = metabaseToCSV(response.data);
297
- actionContent.content = asMarkdown;
+ if (!asMarkdown) {
298
+ actionContent.content = `<OUTPUT>EMPTY_RESULTS</OUTPUT>`;
299
+ } else {
300
+ actionContent.content = `<OUTPUT>${asMarkdown}</OUTPUT>`;
301
+ }
302
}
303
return actionContent;
304
0 commit comments