You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Core: Unify display of error type prefixes
This commit is contained in:
@@ -852,6 +852,7 @@ Error GDScript::reload(bool p_keep_state) {
|
||||
err = compiler.compile(&parser, this, p_keep_state);
|
||||
|
||||
if (err) {
|
||||
// TODO: Provide the script function as the first argument.
|
||||
_err_print_error("GDScript::reload", path.is_empty() ? "built-in" : (const char *)path.utf8().get_data(), compiler.get_error_line(), ("Compile Error: " + compiler.get_error()).utf8().get_data(), false, ERR_HANDLER_SCRIPT);
|
||||
if (can_run) {
|
||||
if (EngineDebugger::is_active()) {
|
||||
@@ -875,7 +876,8 @@ Error GDScript::reload(bool p_keep_state) {
|
||||
for (const GDScriptWarning &warning : parser.get_warnings()) {
|
||||
if (EngineDebugger::is_active()) {
|
||||
Vector<ScriptLanguage::StackInfo> si;
|
||||
EngineDebugger::get_script_debugger()->send_error("", get_script_path(), warning.start_line, warning.get_name(), warning.get_message(), false, ERR_HANDLER_WARNING, si);
|
||||
// TODO: Provide the script function as the first argument.
|
||||
EngineDebugger::get_script_debugger()->send_error("GDScript::reload", get_script_path(), warning.start_line, warning.get_name(), warning.get_message(), false, ERR_HANDLER_WARNING, si);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user