wbthomason / packer.nvim

A use-package inspired plugin manager for Neovim. Uses native packages, supports Luarocks dependencies, written in Lua, allows for expressive config
MIT License
7.75k stars 261 forks source link

fix(update): error message when unknown plugin is provided #1047

Closed AckslD closed 1 year ago

AckslD commented 1 year ago

Currently if you do eg PackerUpdate foobar and there is no plugin foobar you get a bit cryptic error about accessing a nil value. This just adds a more clear error message.

wbthomason commented 1 year ago

Thanks! I made a small tweak to check #tasks before we add the task metadata (the max job count and termination check function), since otherwise I think this check will always be true. If you don't see any obvious issues, I think we're good to merge.

AckslD commented 1 year ago

Awesome, looks good :+1: