Skip to content

Commit

Permalink
Merge pull request #5319 from SickheadGames/misc2
Browse files Browse the repository at this point in the history
Misc Pipeline Fix
  • Loading branch information
KonajuGames committed Nov 28, 2016
2 parents 647fddc + 84e4184 commit fe5af5f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Expand Up @@ -90,7 +90,7 @@ public FontDescriptionProcessor()
// Get the platform specific texture profile.
var texProfile = TextureProfile.ForPlatform(context.TargetPlatform);

try {
{
if (!File.Exists(fontName)) {
throw new Exception(string.Format("Could not load {0}", fontName));
}
Expand Down Expand Up @@ -133,9 +133,6 @@ public FontDescriptionProcessor()

output.Texture.Faces[0].Add(face);
}
catch(Exception ex) {
context.Logger.LogImportantMessage("{0}", ex.ToString());
}

if (PremultiplyAlpha)
{
Expand Down
7 changes: 6 additions & 1 deletion Tools/MGCB/ConsoleLogger.cs
Expand Up @@ -30,7 +30,12 @@ public override void LogWarning(string helpLink, ContentIdentity contentIdentity
warning += "(" + contentIdentity.FragmentIdentifier + ")";
warning += ": ";
}
warning += string.Format(message, messageArgs);

if (messageArgs != null && messageArgs.Length != 0)
warning += string.Format(message, messageArgs);
else if (!string.IsNullOrEmpty(message))
warning += message;

Console.WriteLine(warning);
}
}
Expand Down

0 comments on commit fe5af5f

Please sign in to comment.