Adds error message to ensure valid initialization