From e306a94e54f1d566fc49b504a42197f2bfc46b28 Mon Sep 17 00:00:00 2001 From: paul Date: Fri, 1 Dec 2006 17:44:56 +0000 Subject: [PATCH] Better debug messages. --- campcaster/src/products/scheduler/src/PlaylistEvent.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/campcaster/src/products/scheduler/src/PlaylistEvent.cxx b/campcaster/src/products/scheduler/src/PlaylistEvent.cxx index d3ba37e42..9f07010e8 100644 --- a/campcaster/src/products/scheduler/src/PlaylistEvent.cxx +++ b/campcaster/src/products/scheduler/src/PlaylistEvent.cxx @@ -127,6 +127,7 @@ PlaylistEvent :: deInitialize(void) throw () DEBUG_BLOCK if (state != stopped) { + error() << "::deInitialize() - ERROR: STATE IS NOT STOPPED! Aborting." << endl; // TODO: handle error? return; } @@ -151,8 +152,8 @@ PlaylistEvent :: start(void) throw () DEBUG_BLOCK if (state != initialized) { + error() << "::start() - ERROR: STATE IS NOT INITIALIZED! Aborting." << endl; // TODO: handle error? - error() << "Not initialized. Aborting." << endl; return; } @@ -181,6 +182,7 @@ PlaylistEvent :: stop(void) throw () DEBUG_BLOCK if (state != running) { + error() << "::stop() - ERROR: STATE IS NOT RUNNING! Aborting." << endl; // TODO: handle error? return; }