Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 18, 2010, 12:08:05 AM (14 years ago)
Author:
rgrieder
Message:

Only catch exceptions you actually expect. And rethrow unknown exceptions ("…" can also catch internal Microsoft exceptions like floating point exception).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/tools/ResourceLocation.cc

    r6417 r7174  
    9898                this->getPath(), this->getResourceGroup());
    9999        }
    100         catch (...)
     100        catch (const Ogre::Exception& ex)
    101101        {
    102             COUT(1) << "Removing of a ResourceLocation failed: " << Exception::handleMessage() << std::endl;
     102            COUT(1) << "Removing of a ResourceLocation failed: " << ex.what() << std::endl;
    103103        }
    104104    }
Note: See TracChangeset for help on using the changeset viewer.