Commit 8628004c authored by Kevin Coulomb's avatar Kevin Coulomb
Browse files

Affichage d'un message d'erreur pour le cas ou le container n'existe pas

parent 1c524558
...@@ -5,10 +5,14 @@ ...@@ -5,10 +5,14 @@
#ifndef DRAW_TRACE_HPP #ifndef DRAW_TRACE_HPP
#define DRAW_TRACE_HPP #define DRAW_TRACE_HPP
#include <string>
#include "resource.hpp" #include "resource.hpp"
#include "../interface/render_area.hpp" #include "../interface/render_area.hpp"
#include "../message/message_ns.hpp"
using namespace message_ns;
/*! /*!
* \brief * \brief
...@@ -167,7 +171,8 @@ public: ...@@ -167,7 +171,8 @@ public:
container = get_container(trace_container, 0); container = get_container(trace_container, 0);
if(container == NULL) { if(container == NULL) {
std::cerr << "The trace can not be shown because there are no containers." << std::endl; // std::cerr << "The trace can not be shown because there are no containers." << std::endl;
message << "Error a container does not exist. Cannot display the trace" << ende;
return; return;
} }
if (number_of_children(container) <= 1) if (number_of_children(container) <= 1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment