# Reporting which plugin has caused the error

**URL:** https://meta.discourse.org/t/reporting-which-plugin-has-caused-the-error/65925
**Category:** Feature
**Created:** [10 Julio, 2017 08:44 UTC](https://meta.discourse.org/t/reporting-which-plugin-has-caused-the-error/65925 "2017-07-10T08:44:49Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [10 Julio, 2017 08:44 UTC](https://meta.discourse.org/t/reporting-which-plugin-has-caused-the-error/65925/1 "2017-07-10T08:44:49Z")

</div>

based on the errors I get in the admin panel, I feel discourse can understand which plugin has caused the error. look at these errors e.g.

```plaintext
Uncaught TypeError: Cannot read property 'inlineBetween' of undefined Url: https://padpors.com/assets/plugin-third-party-66034ae1bc6977c5ec45dcf7adb5f8f9799ab0ff261ffd958c9425a34a956605.js Line: 1 Col 

```

or this one:

```plaintext
 TypeError: Discourse.Dialect is undefined Url: https://padpors.com/assets/plugin-third-party-66034ae1bc6977c5ec45dcf7adb5f8f9799ab0ff261ffd958c9425a34a956605.js Line: 1 Column: 42472 Window Location: 

```

in both of them it has pointed to a js file with a coded name (i.e. `plugin-third-party-66034ae1bc6977c5ec45dcf7adb5f8f9799ab0ff261ffd958c9425a34a956605.js`).

is it possible that the plugin name is also mentioned in the error log?

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [10 Julio, 2017 09:10 UTC](https://meta.discourse.org/t/reporting-which-plugin-has-caused-the-error/65925/2 "2017-07-10T09:10:13Z")

</div>

This would be great. As a possibly related thing, it would be nice if one plugin throwing a JS exception didn’t break other plugins.

I don’t know enough about how plugins are loaded to know whether that would be feasible though…

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [10 Julio, 2017 11:57 UTC](https://meta.discourse.org/t/reporting-which-plugin-has-caused-the-error/65925/3 "2017-07-10T11:57:51Z")

</div>

But it is… If you open that referenced JS file, you will see the very beginning starts with:

```plaintext
define("discourse/plugins/Recommander/discourse/initializers/Recommander",

```

Surely that identifies the plugin well enough at just a click?

---

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [10 Julio, 2017 13:25 UTC](https://meta.discourse.org/t/reporting-which-plugin-has-caused-the-error/65925/4 "2017-07-10T13:25:33Z")

</div>

> [@Pad\_Pors](#):
>
> [https://padpors.com/assets/plugin-third-party-66034ae1bc6977c5ec45dcf7adb5f8f9799ab0ff261ffd958c9425a34a956605.js](https://padpors.com/assets/plugin-third-party-66034ae1bc6977c5ec45dcf7adb5f8f9799ab0ff261ffd958c9425a34a956605.js)

I never have thought about opening that link! 🤨

thanks for the hint.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [10 Julio, 2017 14:06 UTC](https://meta.discourse.org/t/reporting-which-plugin-has-caused-the-error/65925/5 "2017-07-10T14:06:45Z")

</div>

My understanding is that the file linked contains the JavaScript for every plugin installed on the forum - Recommander just happens to be the first one in the file.

If you do a Ctrlf for `define("discourse/plugins` you’ll see many plugins.

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [10 Julio, 2017 14:20 UTC](https://meta.discourse.org/t/reporting-which-plugin-has-caused-the-error/65925/6 "2017-07-10T14:20:52Z")

</div>

Ah, oops, I guess that really only works in a dev environment.
