Add error message.

This commit is contained in:
mark 2006-12-01 17:08:35 +00:00
parent 26c9566bf1
commit 426b40f2ce
1 changed files with 4 additions and 3 deletions

View File

@ -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?