summaryrefslogtreecommitdiff
path: root/scene/gui/line_edit.cpp
diff options
context:
space:
mode:
authorTomasz Chabora <kobewi4e@gmail.com>2019-08-08 22:11:48 +0200
committerTomasz Chabora <kobewi4e@gmail.com>2019-08-09 13:54:52 +0200
commitaf5e0fff66d55d07a7910bcd7f170da2f952f7cb (patch)
treecdf217de6cd3ce1c038b7d159d06635a641105f2 /scene/gui/line_edit.cpp
parentd2a67c9c1fdee470064f2b3c5750c98f174b5399 (diff)
Remove ERR_EXPLAIN from scene/* code
Diffstat (limited to 'scene/gui/line_edit.cpp')
-rw-r--r--scene/gui/line_edit.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp
index ccdc95696c..60a74066a4 100644
--- a/scene/gui/line_edit.cpp
+++ b/scene/gui/line_edit.cpp
@@ -1405,8 +1405,7 @@ void LineEdit::set_secret_character(const String &p_string) {
// An empty string as the secret character would crash the engine
// It also wouldn't make sense to use multiple characters as the secret character
- ERR_EXPLAIN("Secret character must be exactly one character long (" + itos(p_string.length()) + " characters given)");
- ERR_FAIL_COND(p_string.length() != 1);
+ ERR_FAIL_COND_MSG(p_string.length() != 1, "Secret character must be exactly one character long (" + itos(p_string.length()) + " characters given).");
secret_character = p_string;
update();