All pastes #908807 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-02-18 19:19 UTC
rendered paste body
                        std::ifstream instream;
                        try
                        {
                            instream.open(image_iter.Get()->GetText().c_str());
                            if (!instream.is_open())
                            {
                                // File wasn't able to be opened.
                                #ifdef DEBUG
                                mLogManager.logError("ImageManager: Could not open " + image_iter.Get()->GetText() + " for reading, abort.");
                                #endif
                                throw(Exception::FileOperationFailedException(image_iter.Get()->GetText().c_str()));
                            }
                        }
                        catch (std::exception &e)
                        {
                            mLogManager.logError(e.what());
                            std::cout << e.what();
                        }