Add flash message when an error occurred during the structure analysis