Skip to content

Commit c720a94

Browse files
committed
fix: include exception message in LE expansion warning
1 parent 9cd20f1 commit c720a94

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

samcli/lib/sync/infra_sync_executor.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -588,11 +588,12 @@ def _detect_foreach_code_changes(
588588
try:
589589
current_expanded = expand_language_extensions(current_template).expanded_template
590590
deployed_expanded = expand_language_extensions(last_deployed_template).expanded_template
591-
except Exception:
591+
except Exception as e:
592592
LOG.warning(
593-
"Failed to expand language extensions for code change detection. "
593+
"Failed to expand language extensions for code change detection: %s. "
594594
"ForEach-generated resources will not be checked for code changes. "
595-
"Run with --debug for details."
595+
"Run with --debug for details.",
596+
e,
596597
)
597598
LOG.debug("Language extension expansion failure details:", exc_info=True)
598599
return

0 commit comments

Comments
 (0)