mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 04:21:27 +02:00
better template load error message.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
loadTemplate: function (templateId) {
|
loadTemplate: function (templateId) {
|
||||||
|
|
||||||
var template = "<div class='alert alert-error'>TEMPLATE [" + templateId + "] NOT FOUND</div>";
|
var template;
|
||||||
|
|
||||||
jQuery.ajax({
|
jQuery.ajax({
|
||||||
url: 'Backbone.NzbDrone//' + templateId + '.html',
|
url: 'Backbone.NzbDrone//' + templateId + '.html',
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
}).fail(function (data) {
|
}).fail(function (data) {
|
||||||
console.log("couldn't load template " + this.templateId + " Error: " + data.statusText);
|
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;
|
return template;
|
||||||
|
Reference in New Issue
Block a user