Closed appfactoryCo closed 2 years ago
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
I think we'll close this PR and try coming up with something similar to solve your problem. The init
may throw an error instead of returning nil
.
I'll just leave it open for now not to forget about it.
Closed with #486.
Hello there,
Thank you for creating this useful library.
I was trying to create a firmware file by passing a url. I noticed that I didn't get enough information about the kind of error that happened when using the DFUFirmware initializer. For example, when I passed it a url to a zip file like this:
Then, I found this error in the logs:
I had no idea what that meant, and there was no initializer that would give my app an error. So, I added errorHandler parameter to the DFUFirmware initializers to get some errors back to my app:
For example, now I can do something like this:
or
Doing so helped me figure out what the error was. It was "No manifest file found," and now I can let the app display this error back to the user.
I hope this little contribution is useful.
Thanks a lot.