Lens Scripting API
    Preparing search index...

    Function failAsync

    • Unhandled Promise rejections are silently ignored by default. failAsync rethrows the error, ensuring it results in an unhandled exception. Note: error is not rethrown immediately, some pending JS code might still be executed. Use it as a default .catch() handler when no other error handling is provided.

      Example:

      someAsyncFunction().catch(failAsync);
      

      Parameters

      • error: any

      Returns void