Skip to content

Make missing plugin repo errors more informative#4087

Open
dmytrovoytko wants to merge 2 commits intomicro-editor:masterfrom
dmytrovoytko:dmytrovoytko-patch-1
Open

Make missing plugin repo errors more informative#4087
dmytrovoytko wants to merge 2 commits intomicro-editor:masterfrom
dmytrovoytko:dmytrovoytko-patch-1

Conversation

@dmytrovoytko
Copy link
Copy Markdown

Thank you for this great editor!
Please consider this update to handle missing plugin repo errors better.
It addresses #1276

Plugins in official channel are ok now (may change someday), but 3 plugins of unofficial channel are missing and it shows up as strange messages while running micro -plugin available or other plugin commands:

Failed to decode repository data:
 json: cannot unmarshal number into Go value of type config.PluginPackages
Failed to decode repository data:
 invalid character '<' looking for beginning of value
Failed to decode repository data:
 invalid character '<' looking for beginning of value

Instead it would show up like this:

Skipped: Plugin repository not found at https://raw.githubusercontent.com/cadnza/mxc/main/repo.json (Status Code: 404).
Skipped: Plugin repository not found at https://notabug.org/dustdfg/micro-calc/raw/master/repo.json (Status Code: 404).
Skipped: Plugin repository not found at https://notabug.org/dustdfg/micro-mdtree/raw/master/repo.json (Status Code: 404).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant