summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ModLoading
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-02-16 23:12:01 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-02-16 23:12:01 -0500
commit8a1982326799dfe7f3d078beba32348befa1c9e6 (patch)
treed904aa73098f5e9577532fd1d03908e2e78f26d0 /src/SMAPI/Framework/ModLoading
parent9b3dd42cbf62a8524ac390d9418cf961c502868a (diff)
downloadSMAPI-8a1982326799dfe7f3d078beba32348befa1c9e6.tar.gz
SMAPI-8a1982326799dfe7f3d078beba32348befa1c9e6.tar.bz2
SMAPI-8a1982326799dfe7f3d078beba32348befa1c9e6.zip
add mod page URL to missing-dependency errors (#437)
Diffstat (limited to 'src/SMAPI/Framework/ModLoading')
-rw-r--r--src/SMAPI/Framework/ModLoading/ModResolver.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/ModLoading/ModResolver.cs b/src/SMAPI/Framework/ModLoading/ModResolver.cs
index 99d86bf8..b46ee117 100644
--- a/src/SMAPI/Framework/ModLoading/ModResolver.cs
+++ b/src/SMAPI/Framework/ModLoading/ModResolver.cs
@@ -272,8 +272,11 @@ namespace StardewModdingAPI.Framework.ModLoading
from entry in dependencies
where entry.IsRequired && entry.Mod == null
let displayName = modDatabase.GetDisplayNameFor(entry.ID) ?? entry.ID
+ let modUrl = modDatabase.GetModPageUrlFor(entry.ID)
orderby displayName
- select displayName
+ select modUrl != null
+ ? $"{displayName}: {modUrl}"
+ : displayName
).ToArray();
if (failedModNames.Any())
{