diff --git a/gtk/msgwin.c b/gtk/msgwin.c index 51c4baad3..3e38921e0 100644 --- a/gtk/msgwin.c +++ b/gtk/msgwin.c @@ -378,6 +378,17 @@ addMessages( GtkListStore * store, struct tr_msg_list * head ) COL_MESSAGE, i->message, COL_SEQUENCE, ++sequence, -1 ); + + /* if it's an error message, dump it to the terminal too */ + if( i->level == TR_MSG_ERR ) + { + GString * gstr = g_string_sized_new( 512 ); + g_string_append_printf( gstr, "%s:%d %s", i->file, i->line, i->message ); + if( i->name != NULL ) + g_string_append_printf( gstr, " (%s)", i->name ); + g_warning( "%s", gstr->str ); + g_string_free( gstr, TRUE ); + } } return i; /* tail */