mirror of https://github.com/Jackett/Jackett
Improve error messages
This commit is contained in:
parent
c08498d75c
commit
c3e632d215
|
@ -273,11 +273,14 @@ namespace Jackett.Controllers
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
var msg = ex.Message;
|
||||||
|
if (ex.InnerException != null)
|
||||||
|
msg += ": " + ex.InnerException.Message;
|
||||||
logger.Error(ex, "Exception in test_indexer");
|
logger.Error(ex, "Exception in test_indexer");
|
||||||
jsonReply["result"] = "error";
|
jsonReply["result"] = "error";
|
||||||
jsonReply["error"] = ex.Message;
|
jsonReply["error"] = msg;
|
||||||
if (indexer != null)
|
if (indexer != null)
|
||||||
indexer.LastError = ex.Message;
|
indexer.LastError = msg;
|
||||||
}
|
}
|
||||||
return Json(jsonReply);
|
return Json(jsonReply);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue