mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
Make error messages more descriptive
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Podsync.Helpers;
|
||||
@@ -45,8 +46,8 @@ namespace Podsync.Controllers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
var response = "Could nou resolve URL";
|
||||
if (ex is InvalidOperationException)
|
||||
var response = "Could not resolve URL";
|
||||
if (ex is InvalidOperationException || ex is HttpRequestException)
|
||||
{
|
||||
response = ex.Message;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user