This error was copied from the install_package implementation