From 426b40f2ce0fdc5de3b03afea6026254fee58574 Mon Sep 17 00:00:00 2001 From: mark Date: Fri, 1 Dec 2006 17:08:35 +0000 Subject: [PATCH] Add error message. --- campcaster/src/products/scheduler/src/PlaylistEvent.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/campcaster/src/products/scheduler/src/PlaylistEvent.cxx b/campcaster/src/products/scheduler/src/PlaylistEvent.cxx index 42dfb32d9..d3ba37e42 100644 --- a/campcaster/src/products/scheduler/src/PlaylistEvent.cxx +++ b/campcaster/src/products/scheduler/src/PlaylistEvent.cxx @@ -124,7 +124,7 @@ PlaylistEvent :: initialize(void) throw (std::exception) void PlaylistEvent :: deInitialize(void) throw () { - //DEBUG_BLOCK + DEBUG_BLOCK if (state != stopped) { // TODO: handle error? @@ -148,10 +148,11 @@ PlaylistEvent :: deInitialize(void) throw () void PlaylistEvent :: start(void) throw () { - //DEBUG_BLOCK + DEBUG_BLOCK if (state != initialized) { // TODO: handle error? + error() << "Not initialized. Aborting." << endl; return; } @@ -177,7 +178,7 @@ PlaylistEvent :: start(void) throw () void PlaylistEvent :: stop(void) throw () { - //DEBUG_BLOCK + DEBUG_BLOCK if (state != running) { // TODO: handle error?