webarkit / ARnft

A small javascript library for WebAR with NFT
GNU Lesser General Public License v3.0
220 stars 54 forks source link

More errors message in the worker #221

Open kalwalt opened 3 years ago

kalwalt commented 3 years ago

In a Worker t's possible to send error message like this:

worker.onerror = function (err) {
    console.log('ERROR: ', err)
};
albjeremias commented 3 years ago

in the upper component should be able to catch the errors...

so it would be like:

ARnft.onerror = function(err) {
   console.log('There was an error: ', err);
}