mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-24 08:44:46 +00:00
better template load error message.
This commit is contained in:
parent
2112a8f9fa
commit
577d8adec4
1 changed files with 2 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
loadTemplate: function (templateId) {
|
||||
|
||||
var template = "<div class='alert alert-error'>TEMPLATE [" + templateId + "] NOT FOUND</div>";
|
||||
var template;
|
||||
|
||||
jQuery.ajax({
|
||||
url: 'Backbone.NzbDrone//' + templateId + '.html',
|
||||
|
@ -13,6 +13,7 @@
|
|||
|
||||
}).fail(function (data) {
|
||||
console.log("couldn't load template " + this.templateId + " Error: " + data.statusText);
|
||||
template = "<div class='alert alert-error'>Couldn't load template '" + templateId + "'. Status: " + data.statusText + "</div>";
|
||||
});
|
||||
|
||||
return template;
|
||||
|
|
Loading…
Reference in a new issue