Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] Run command/script upon specific error #5619

Closed
Matteoki opened this issue May 20, 2024 · 1 comment
Closed

[Request] Run command/script upon specific error #5619

Matteoki opened this issue May 20, 2024 · 1 comment

Comments

@Matteoki
Copy link

Is it possible to run a cmd line upon a specific error? (Like Authorization error, or "tweets protected" error) , It would come in handy a lot for me since in my script I need to check for each user if the gallery-dl output will give an error or not, if it doesn't I can proceed with the actual archive command, and this is a very clunky solution. Thanks

mikf added a commit that referenced this issue Jun 30, 2024
@mikf
Copy link
Owner

mikf commented Aug 3, 2024

You can use actions to run a command upon an error logging message:

        "actions": {
            "error:Authorization": "exec echo auth",
            "error:tweets protected": "exec echo protected"
        }

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

No branches or pull requests

2 participants