mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-19 21:46:50 -04:00
updated some error logging.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using FluentValidation;
|
||||
using NLog;
|
||||
using Nancy;
|
||||
@@ -37,7 +36,7 @@ namespace NzbDrone.Api.ErrorManagement
|
||||
|
||||
}
|
||||
|
||||
_logger.ErrorException("Unexpected error", exception);
|
||||
_logger.FatalException("Request Failed", exception);
|
||||
|
||||
|
||||
return new ErrorModel()
|
||||
|
||||
@@ -62,11 +62,10 @@ define(function () {
|
||||
if (xmlHttpRequest.status === 0 && xmlHttpRequest.readyState === 0) {
|
||||
message.message = 'NzbDrone Server Not Reachable. make sure NzbDrone is running.';
|
||||
} else {
|
||||
message.message = ajaxOptions.type + " " + ajaxOptions.url + " : " + xmlHttpRequest.statusText;
|
||||
message.message = "[{0}] {1} : {2}".format(ajaxOptions.type, xmlHttpRequest.statusText, ajaxOptions.url);
|
||||
}
|
||||
|
||||
window.Messenger().post(message);
|
||||
alert('test');
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user