How to replace the message "Unknown error message" with more details when packaging a game project ?

Common problem: