diff options
-rw-r--r-- | src/plugin.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/plugin.c b/src/plugin.c index dfc43bb..5830e2c 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -206,7 +206,20 @@ deploy_launcher_data_cb (AnjutaLauncher *launcher, AnjutaPluginSdk *sp = (AnjutaPluginSdk *)userdata; GError *error = NULL; - if (sp->deploy_msg_view) + if (g_strrstr(chars, "rsync: not found") && sp->deploy_msg_view) + { + ianjuta_message_view_append (sp->deploy_msg_view, + IANJUTA_MESSAGE_VIEW_TYPE_ERROR, + "Rsync missing on target", + "Try using an sdk image or installing rsync", + &error); + if (error) + { + g_warning ("Error appending to message view: %s", error->message); + g_clear_error (&error); + } + } + else if (sp->deploy_msg_view) { /* Append to the buffer for the message view to deal with the newlines */ ianjuta_message_view_buffer_append (sp->deploy_msg_view, chars, &error); |