Skip to content

Commit 89da33b

Browse files
committed
fix: both sentry and config.loggers are needed to capture the error message
1 parent b33c91e commit 89da33b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

fmriprep/cli/run.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,12 @@ def main():
223223
write_derivative_description(config.execution.bids_dir, config.execution.fmriprep_dir)
224224
write_bidsignore(config.execution.fmriprep_dir)
225225

226+
if failed_reports:
227+
config.loggers.cli.error(
228+
"Report generation was not successful for the following participants : %s.",
229+
", ".join(failed_reports),
230+
)
231+
226232
if sentry_sdk is not None and failed_reports:
227233
sentry_sdk.capture_message(
228234
"Report generation was not successful for the following participants : %s.",

0 commit comments

Comments
 (0)