> For the complete documentation index, see [llms.txt](https://more-about-angular.gitbook.io/artyom-js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://more-about-angular.gitbook.io/artyom-js/api/untitled-3.md).

# detectErrors

通过artyom探查客户端中发现的错误。

该方法允许开发者探查是什么问题阻止了artyom的启动。

{% hint style="warning" %}
该方法将会在下个版本移除（因为该功能只供开发者使用？？？）
{% endhint %}

```javascript
var errorObject = artyom.detectErrors();

console.log(normalError);

// Outputs for example
//{
//    code: "artyom_error_localfile",
//    message: "Fatal Error Detected : It seems you're running the artyom demo from a local file ! The SpeechRecognitionAPI Needs to be hosted someway (server as http or https). Artyom will NOT work here, Sorry."
//}
```
