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

Failed to check license expiry date when license is expired #3

Open
HengJunXi opened this issue Oct 26, 2020 · 1 comment
Open

Failed to check license expiry date when license is expired #3

HengJunXi opened this issue Oct 26, 2020 · 1 comment

Comments

@HengJunXi
Copy link

Currently, to check the license expiry date, we would need to initialise the Regula.DocumentReader first; however, the initialisation will fail when the license is expired. This disallow us from knowing whether the failure is caused by expired license and show appropriate error message. There is a not so reliable way of checking if the error caught in the errorCallback (a string) .includes("invalid date"). Are there any better alternatives like error codes or something?

@vyakimchik
Copy link
Contributor

Hello,

We'll think of that and try to implement this feature in the next version.

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

No branches or pull requests

2 participants