better exception message

This commit is contained in:
Chomp 2022-01-07 09:51:19 +00:00
parent e386a924f3
commit ad9a352488

View File

@ -20,7 +20,7 @@ namespace Generator.Helpers
var itemsFilePath = $"{Directory.GetCurrentDirectory()}\\Assets\\items.json"; var itemsFilePath = $"{Directory.GetCurrentDirectory()}\\Assets\\items.json";
if (!File.Exists(itemsFilePath)) if (!File.Exists(itemsFilePath))
{ {
throw new Exception($"Missing items.json under assets ({itemsFilePath})"); throw new Exception($"Missing items.json in /assets ({itemsFilePath})");
} }
var itemsJson = File.ReadAllText(itemsFilePath); var itemsJson = File.ReadAllText(itemsFilePath);