Added a more detailed error message for invalid licenses.