Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Nicer error msg when trying to pull tenant colls (#67948)

John Swansondb6808c75496
diff --git a/enterprise/backend/src/metabase_enterprise/remote_sync/impl.clj b/enterprise/backend/src/metabase_enterprise/remote_sync/impl.clj
index 47bcbf25ea7..5cc45153394 100644
--- a/enterprise/backend/src/metabase_enterprise/remote_sync/impl.clj
+++ b/enterprise/backend/src/metabase_enterprise/remote_sync/impl.clj
@@ -108,6 +108,9 @@
(str/includes? (ex-message e) "branch")
"Branch error: Please check the specified branch exists"
+ (some-> e ex-cause ex-message (str/includes? "Can't create a tenant collection without tenants enabled"))
+ "This repository contains tenant collections, but the tenants feature is disabled on your instance."
+
:else
(format "Failed to reload from git repository: %s" (ex-message e))))