Index: /OpenSceneGraph/trunk/examples/osganimationtimeline/osganimationtimeline.cpp
===================================================================
--- /OpenSceneGraph/trunk/examples/osganimationtimeline/osganimationtimeline.cpp (revision 9692)
+++ /OpenSceneGraph/trunk/examples/osganimationtimeline/osganimationtimeline.cpp (revision 10487)
@@ -1,4 +1,4 @@
 /*  -*-c++-*- 
- *  Copyright (C) 2008 Cedric Pinson <mornifle@plopbyte.net>
+ *  Copyright (C) 2008 Cedric Pinson <cedric.pinson@plopbyte.net>
  *
  * This library is open source and may be redistributed and/or modified under  
@@ -158,5 +158,5 @@
 int main (int argc, char* argv[])
 {
-    std::cerr << "This example works only with osgAnimation/nathan.osg" << std::endl;
+    std::cerr << "This example works only with nathan.osg" << std::endl;
 
     osg::ArgumentParser psr(&argc, argv);
@@ -164,5 +164,5 @@
     osgViewer::Viewer viewer(psr);
 
-    std::string file = "osgAnimation/nathan.osg";
+    std::string file = "nathan.osg";
     if(argc >= 2) 
         file = psr[1];
@@ -170,8 +170,12 @@
     // replace the manager
     osg::Group* root = dynamic_cast<osg::Group*>(osgDB::readNodeFile(file));
+    if (!root) {
+        osg::notify(osg::FATAL) << "can't read file " << file << std::endl;
+        return 1;
+    }
     osgAnimation::AnimationManagerBase* animationManager = dynamic_cast<osgAnimation::AnimationManagerBase*>(root->getUpdateCallback());
     if(!animationManager) 
     {
-        std::cerr << "Did not find AnimationManagerBase updateCallback needed to animate elements" << std::endl;
+        osg::notify(osg::FATAL) << "Did not find AnimationManagerBase updateCallback needed to animate elements" << std::endl;
         return 1;
     }
