It should just log an error about it, as you might end up quite stuck because you installed a broken extension you cannot uninstall.