diff --git a/IpfsServer/Pages/ipfs.cshtml b/IpfsServer/Pages/ipfs.cshtml index 4d3ab34e..ffb01914 100644 --- a/IpfsServer/Pages/ipfs.cshtml +++ b/IpfsServer/Pages/ipfs.cshtml @@ -1,5 +1,8 @@ @page "{*Path}" @model IpfsModel +@{ + ViewData["Title"] = Model.Path; +}

Index of @Model.Path

@@ -7,18 +10,18 @@ @if (@Model.PathParts.Count() > 1) { - - - - (parent) - - + + + + (parent) + + } @foreach (var f in @Model.Directories) { - + @f.Name diff --git a/src/CoreApi/GenericApi.cs b/src/CoreApi/GenericApi.cs index e3849d90..5560c534 100644 --- a/src/CoreApi/GenericApi.cs +++ b/src/CoreApi/GenericApi.cs @@ -51,7 +51,7 @@ public GenericApi(IpfsEngine ipfs) var container = await ipfs.Object.GetAsync(id, cancel).ConfigureAwait(false); var link = container.Links.FirstOrDefault(l => l.Name == child); if (link == null) - throw new ArgumentException($"Cannot resolve '{name}'."); + throw new ArgumentException($"Cannot resolve '{child}' in '{name}'."); id = link.Id; }