mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Added error message to print URL for failed Dropbox download
This commit is contained in:
parent
e830ffc540
commit
d789e5a26d
@ -1,6 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
|
using Wabbajack.Common;
|
||||||
|
|
||||||
namespace Wabbajack.Lib.Downloaders
|
namespace Wabbajack.Lib.Downloaders
|
||||||
{
|
{
|
||||||
@ -13,6 +14,8 @@ namespace Wabbajack.Lib.Downloaders
|
|||||||
}
|
}
|
||||||
|
|
||||||
public AbstractDownloadState GetDownloaderState(string url)
|
public AbstractDownloadState GetDownloaderState(string url)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
if (url == null) return null;
|
if (url == null) return null;
|
||||||
var uri = new UriBuilder(url);
|
var uri = new UriBuilder(url);
|
||||||
@ -31,6 +34,12 @@ namespace Wabbajack.Lib.Downloaders
|
|||||||
Url = uri.ToString().Replace("dropbox.com:443/", "dropbox.com/")
|
Url = uri.ToString().Replace("dropbox.com:443/", "dropbox.com/")
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
Utils.Error($"Error downloading Dropbox link: {url}");
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public async Task Prepare()
|
public async Task Prepare()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user