Skip to content

Commit

Permalink
minor log fixes that were creating bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammin committed Aug 16, 2023
1 parent 719c204 commit 1a50fa4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Assets/LDtkUnity/Editor/ScriptedImporter/LDtkJsonDigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private static bool DigIntoJson<T>(string path, JsonDigAction<T> digAction, ref
return true;
}

LDtkDebug.LogError($"Issue digging into the json for {path}");
LDtkDebug.LogError($"Issue digging into the json for {path} when doing {digAction.Method.Name}");
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,14 +371,14 @@ public LDtkTilesetImporter LoadAndCacheTilesetImporter(TilesetDefinition def)

if (!File.Exists(path))
{
Logger.LogError($"Failed to find the required tileset file at \"{path}\". Ensure that LDtk exported a tileset file through a custom command. If the command wasn't configured yet, check the project inspector for more info.");
LDtkDebug.LogError($"Failed to find the required tileset file at \"{path}\". Ensure that LDtk exported a tileset file through a custom command. If the command wasn't configured yet, check the project inspector for more info.", Logger);
return null;
}

importer = (LDtkTilesetImporter)GetAtPath(path);
if (importer == null)
{
Logger.LogError($"Failed to find the required tileset file importer at \"{path}\", but the file exists. The tileset file may have failed to import?");
LDtkDebug.LogError($"Failed to find the required tileset file importer at \"{path}\", but the file exists. The tileset file may have failed to import?", Logger);
return null;
}

Expand Down

0 comments on commit 1a50fa4

Please sign in to comment.