diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-27 17:52:40 +0200 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-27 17:52:40 +0200 |
| commit | 431c5839fe793c2ecab8eed3f969a8868862d9fd (patch) | |
| tree | 13fdcf9e0f26158db0f0694d5643695e9fcf9bc3 /platform | |
| parent | ae241abde782a359bdc4eb6d60302c2ae7739ae8 (diff) | |
| parent | c3ed8a842c17d984a4a43ba46042d03e94beb69d (diff) | |
| download | redot-engine-431c5839fe793c2ecab8eed3f969a8868862d9fd.tar.gz | |
Merge pull request #96168 from CreatedBySeb/remove-user-prefix
Remove confusing USER prefix from script-logged errors
Diffstat (limited to 'platform')
| -rw-r--r-- | platform/windows/os_windows.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 40b265785f..fb95c69b52 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -166,15 +166,9 @@ void OS_Windows::initialize_debugging() { static void _error_handler(void *p_self, const char *p_func, const char *p_file, int p_line, const char *p_error, const char *p_errorexp, bool p_editor_notify, ErrorHandlerType p_type) { String err_str; if (p_errorexp && p_errorexp[0]) { - err_str = String::utf8(p_errorexp); + err_str = String::utf8(p_errorexp) + "\n"; } else { - err_str = String::utf8(p_file) + ":" + itos(p_line) + " - " + String::utf8(p_error); - } - - if (p_editor_notify) { - err_str += " (User)\n"; - } else { - err_str += "\n"; + err_str = String::utf8(p_file) + ":" + itos(p_line) + " - " + String::utf8(p_error) + "\n"; } OutputDebugStringW((LPCWSTR)err_str.utf16().ptr()); |
