I\'m a beginner to Javascript and I have a lot of difficulties to throw a message error in my main thread when there an error occurs in a third party asynchronous function:<