Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 20, 2008, 7:49:26 PM (16 years ago)
Author:
rgrieder
Message:

merged input branch into gui test branch (was about time)
svn save (it's still a mess and CMLs haven't been updated)
I'll have to create a special project to create the tolua_bind files for tolua itself anyway..

Location:
code/branches/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui

  • code/branches/gui/src/core/Error.cc

    r1505 r1638  
    3737namespace orxonox
    3838{
    39         Error::Error(std::string errorMsg, int errorCode)
    40         {
    41                 COUT(1) << "############################ "<< std::endl
    42                                                         << "#         Error "<<errorCode<< "          #"<< std::endl
    43                                                         << "############################ "<< std::endl
    44                                                         << "An error occured in Orxonox: "<< std::endl;
     39    Error::Error(std::string errorMsg, int errorCode)
     40    {
     41        COUT(1) << "############################ "<< std::endl
     42                            << "#         Error "<<errorCode<< "          #"<< std::endl
     43                            << "############################ "<< std::endl
     44                            << "An error occured in Orxonox: "<< std::endl;
    4545
    46                 if (errorMsg=="")
    47                 {
    48                         switch (errorCode)
    49                         {
    50                                 case 1:
    51                                         errorMsg = "Some error!";
    52                                         break;
    53                                 default:
    54                                         errorMsg = "Unknown error!";
    55                         }
    56                 }
    57                 COUT(1) << errorMsg << std::endl<< std::endl;
    58         }
     46        if (errorMsg=="")
     47        {
     48            switch (errorCode)
     49            {
     50                case 1:
     51                    errorMsg = "Some error!";
     52                    break;
     53                default:
     54                    errorMsg = "Unknown error!";
     55            }
     56        }
     57        COUT(1) << errorMsg << std::endl<< std::endl;
     58    }
    5959}
Note: See TracChangeset for help on using the changeset viewer.