mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
commit
1a16dabfb5
81 changed files with 123 additions and 123 deletions
|
@ -1973,14 +1973,14 @@ String GDScriptWarning::get_message() const {
|
|||
} break;
|
||||
case UNSAFE_CAST: {
|
||||
CHECK_SYMBOLS(1);
|
||||
return "The value is cast to '" + symbols[0] + "' but has an unkown type.";
|
||||
return "The value is cast to '" + symbols[0] + "' but has an unknown type.";
|
||||
} break;
|
||||
case UNSAFE_CALL_ARGUMENT: {
|
||||
CHECK_SYMBOLS(4);
|
||||
return "The argument '" + symbols[0] + "' of the function '" + symbols[1] + "' requires a the subtype '" + symbols[2] + "' but the supertype '" + symbols[3] + "' was provided";
|
||||
} break;
|
||||
}
|
||||
ERR_EXPLAIN("Invalid GDScript waring code: " + get_name_from_code(code));
|
||||
ERR_EXPLAIN("Invalid GDScript warning code: " + get_name_from_code(code));
|
||||
ERR_FAIL_V(String());
|
||||
|
||||
#undef CHECK_SYMBOLS
|
||||
|
@ -2031,7 +2031,7 @@ GDScriptWarning::Code GDScriptWarning::get_code_from_name(const String &p_name)
|
|||
}
|
||||
}
|
||||
|
||||
ERR_EXPLAIN("Invalid GDScript waring name: " + p_name);
|
||||
ERR_EXPLAIN("Invalid GDScript warning name: " + p_name);
|
||||
ERR_FAIL_V(WARNING_MAX);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue