adding the reason of the error when view creation fails