you can see the error in the STM32CubeMX.log file located under your Home directory
~/.stm32cubemx/STM32CubeMX.log
Or in STM32CubeMX you can see a shorter version of the log using Windows->Outputs
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.