Fix confusing message when an error occurs running actions for a configuration file (#623).

Merge pull request #55 from diivi/fix/rephrase-error-message
This commit is contained in:
Dan Helfman 2023-03-21 14:23:09 -07:00 committed by GitHub
commit dd9a64f4b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -615,9 +615,7 @@ def collect_configuration_run_summary_logs(configs, arguments):
error_logs = tuple(result for result in results if isinstance(result, logging.LogRecord))
if error_logs:
yield from log_error_records(
'{}: Error running configuration file'.format(config_filename)
)
yield from log_error_records('{}: An error occurred'.format(config_filename))
yield from error_logs
else:
yield logging.makeLogRecord(