uranusjr commented on a change in pull request #22503:
URL: https://github.com/apache/airflow/pull/22503#discussion_r834896965
##########
File path: airflow/providers/microsoft/psrp/operators/psrp.py
##########
@@ -146,6 +146,10 @@ def execute(self, context: "Context") ->
Optional[List[Any]]:
if ps.had_errors:
raise AirflowException("Process failed")
+ rc = ps.runspace_pool.host.rc
+ if rc:
+ raise AirflowException("Process exited with non-zero status code:
%d", rc)
Review comment:
```suggestion
raise AirflowException(f"Process exited with non-zero status
code: {rc}")
```
This is not logging, there’s no `%`-formatting.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]