Missing error message in Windows builds

I have a few Windows builds (example) that all fails with an error without any message other than:

##[error]Process completed with exit code 1.

How can I debug this? How do I get a more descriptive error message?

You can try to add the below two secrets with value is _ true _ in your repository to enable debug logging.

ACTIONS_RUNNER_DEBUG

ACTIONS_STEP_DEBUG

From the debug logs you may get more details of the step executions.