Skip to content

Commit

Permalink
Remove hash symbol in front of opcode error messages in GDScript
Browse files Browse the repository at this point in the history
The hash symbol creates spurious issue references on GitHub if
the message is posted outside a code block, which means some issues
have a lot more references than originally intended.
  • Loading branch information
Calinou committed Nov 9, 2021
1 parent 8a15e40 commit 605784f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gdscript/gdscript_vm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3309,7 +3309,7 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
}
int err_line = line;
if (err_text == "") {
err_text = "Internal Script Error! - opcode #" + itos(last_opcode) + " (report please).";
err_text = "Internal script error! Opcode: " + itos(last_opcode) + " (please report).";
}

if (!GDScriptLanguage::get_singleton()->debug_break(err_text, false)) {
Expand Down

0 comments on commit 605784f

Please sign in to comment.