Added alert dialog on doc error