diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-04-07 09:17:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-07 09:17:37 +0200 |
commit | 8c8e3ba91864cd5f8a6c11179b04df2e7838bc26 (patch) | |
tree | d61745457509867666ab9342c53b3bf9b0c4af34 | |
parent | 2267877ee60928e9edddfb6633e69bf9a8c40b0c (diff) | |
parent | 5fae0c454a78a62249b2d8af433b401daed42600 (diff) |
Merge pull request #37579 from Calinou/improve-shader-error-output
Improve the shader error console output
-rw-r--r-- | core/ustring.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp index e56f177103..fbe3fcb1b2 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -647,13 +647,13 @@ String String::camelcase_to_underscore(bool lowercase) const { } String String::get_with_code_lines() const { - Vector<String> lines = split("\n"); + const Vector<String> lines = split("\n"); String ret; for (int i = 0; i < lines.size(); i++) { if (i > 0) { ret += "\n"; } - ret += itos(i + 1) + " " + lines[i]; + ret += vformat("%4d | %s", i + 1, lines[i]); } return ret; } |