Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit f7d5d8c

Browse files
committed
print url in error if we have diff_id
1 parent 197f988 commit f7d5d8c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

data_diff/dbt.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ def _cloud_diff(diff_vars: DiffVars, datasource_id: int, datafold_host: str, url
253253
start = time.monotonic()
254254
error = None
255255
diff_id = None
256+
diff_url = None
256257
try:
257258
diff_id = _cloud_submit_diff(url, payload, headers)
258259
summary_url = f"{url}/{diff_id}/summary_results"
@@ -327,8 +328,11 @@ def _cloud_diff(diff_vars: DiffVars, datasource_id: int, datafold_host: str, url
327328
"[red]"
328329
+ ".".join(diff_vars.prod_path)
329330
+ " <> "
330-
+ ".".join(diff_vars.dev_path)
331+
+ ".".join(diff_vars.dev_path) + "[/]\n"
331332
)
333+
if diff_id:
334+
diff_url = f"{datafold_host}/datadiffs/{diff_id}/overview"
335+
rich.print(f"{diff_url} \n")
332336
logger.error(error)
333337

334338

0 commit comments

Comments
 (0)