Updated the error message when invalid UTF-8 strings are used in love.graphics.print and friends to mention UTF-8.

This commit is contained in:
Alex Szpakowski
2014-10-06 19:34:11 -03:00
parent d3e1993673
commit 1108dea696
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -63,7 +63,7 @@ GlyphData *Rasterizer::getGlyphData(const std::string &text) const
}
catch (utf8::exception &e)
{
throw love::Exception("Decoding error: %s", e.what());
throw love::Exception("UTF-8 decoding error: %s", e.what());
}
return getGlyphData(codepoint);
@@ -89,7 +89,7 @@ bool Rasterizer::hasGlyphs(const std::string &text) const
}
catch (utf8::exception &e)
{
throw love::Exception("Decoding error: %s", e.what());
throw love::Exception("UTF-8 decoding error: %s", e.what());
}
return true;