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

error handling #49

Closed
borox2k opened this issue Dec 6, 2023 · 1 comment
Closed

error handling #49

borox2k opened this issue Dec 6, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@borox2k
Copy link

borox2k commented Dec 6, 2023

How do I show an error if the image is no longer there?

@nzbin nzbin added the enhancement New feature or request label Dec 7, 2023
nzbin added a commit that referenced this issue Mar 16, 2024
@nzbin
Copy link
Owner

nzbin commented Mar 16, 2024

Sorry for late reply, I have added a new option errorMsg to handle error message. Please try the new version 3.10.0.

var options = {
index: $(this).index(),
// errorMsg: 'image load failed',
errorMsg: (ctx, index) =>
`<a href="https://example.com/" target="_blank">#${index} image</a> load failed`
};

@nzbin nzbin closed this as completed Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants