[gtk/wip/baedert/for-master: 93/99] shaderbuilder: Print error message after source code
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 93/99] shaderbuilder: Print error message after source code
- Date: Thu, 8 Oct 2020 16:06:21 +0000 (UTC)
commit c3490b9b34c7ca824b16a79991d8de78d35a472d
Author: Timm Bäder <mail baedert org>
Date: Thu Oct 1 08:39:37 2020 +0200
shaderbuilder: Print error message after source code
My terminal scrolls down, so showing the error message last makes sense.
gsk/gl/gskglshaderbuilder.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gsk/gl/gskglshaderbuilder.c b/gsk/gl/gskglshaderbuilder.c
index f860a68d95..d3b2a8351c 100644
--- a/gsk/gl/gskglshaderbuilder.c
+++ b/gsk/gl/gskglshaderbuilder.c
@@ -91,9 +91,9 @@ check_shader_error (int shader_id,
prepend_line_numbers (code, s);
g_set_error (error, GDK_GL_ERROR, GDK_GL_ERROR_COMPILATION_FAILED,
- "Compilation failure in shader.\nError message: %s\n\nSource code:\n%s\n\n",
- buffer,
- s->str);
+ "Compilation failure in shader.\nSource Code: %s\n\nError Message:\n%s\n\n",
+ s->str,
+ buffer);
g_string_free (s, TRUE);
g_free (buffer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]