mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Raise errors in development mode on deprecation
We've had quite some time to find the deprecation errors in Ember and most should be fixed. It is time to turn up the difficulty, which will raise exceptions in development/test mode if a deprecation is present. This will force developers to fix them as they encounter them.
This commit is contained in:
parent
64dd28d885
commit
59cdde330f
1 changed files with 6 additions and 0 deletions
|
@ -24,6 +24,12 @@
|
|||
<% end %>
|
||||
window.onerror(e && e.message, null,null,null,e);
|
||||
});
|
||||
|
||||
<% if Rails.env.development? || Rails.env.test? %>
|
||||
Ember.ENV.RAISE_ON_DEPRECATION = true
|
||||
Ember.LOG_STACKTRACE_ON_DEPRECATION = true
|
||||
<% end %>
|
||||
|
||||
</script>
|
||||
|
||||
<script>
|
||||
|
|
Loading…
Reference in a new issue