Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.
This repository was archived by the owner on Aug 22, 2024. It is now read-only.

Add error handling for failed repository updates #21

@vadi2

Description

@vadi2
mpkg update
Updating the list of available packages.
Package list of repository MudletPackageManager updated.
Waiting for 1 more repository updates to finish.

And nothing... meanwhile, in Mudlet's error view:

[ERROR:] object:<event handler function> function:<mpkg.finishedDownload>
         <InvalidJSONInput: lexical error: invalid char in json text.
                                       <html><body>You are being <a hr
                     (right here) ------^
 at lua_yajl.c line 310>

Seems like some anti-bot protection on Github's side was triggered and so we can't just easily commit and use a raw link.

Replicate with mpkg repo add mydemo https://github.com/vadi2/MudletPackageManager/raw/master/repository.json description goes here

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions