Skip to content

Commit 6f05a41

Browse files
add exception str to message
1 parent f9cc9e3 commit 6f05a41

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ads/aqua/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,9 +582,10 @@ def fetch_service_compartment() -> Union[str, None]:
582582
file_path=config_file_name,
583583
config_file_name=CONTAINER_INDEX,
584584
)
585-
except Exception:
585+
except Exception as e:
586586
logger.error(
587-
f"Config file {config_file_name}/{CONTAINER_INDEX} to fetch service compartment OCID could not be found."
587+
f"Config file {config_file_name}/{CONTAINER_INDEX} to fetch service compartment OCID could not be found. "
588+
f"\n{str(e)}."
588589
)
589590
return
590591
compartment_mapping = config.get(COMPARTMENT_MAPPING_KEY)

0 commit comments

Comments
 (0)