Skip to content

Commit 5161431

Browse files
committed
Merge pull request #186 from andrewkaufman/expandLinkErrorMessage
Adding mainScene filename to error message in expandLink
2 parents 7c45851 + 0643957 commit 5161431

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/IECore/LinkedScene.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class LinkedScene : public SampledSceneInterface
156156

157157
LinkedScene( SceneInterface *mainScene, const SceneInterface *linkedScene, int rootLinkDepth, bool readOnly, bool atLink, bool timeRemapped );
158158

159-
static ConstSceneInterfacePtr expandLink( const StringData *fileName, const InternedStringVectorData *root, int &linkDepth );
159+
ConstSceneInterfacePtr expandLink( const StringData *fileName, const InternedStringVectorData *root, int &linkDepth );
160160

161161
// uses the mainScene to ask what is the time the link is remapped to. Should only be called when the linkAttribute is available.
162162
double remappedLinkTime( double time ) const;

src/IECore/LinkedScene.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ ConstSceneInterfacePtr LinkedScene::expandLink( const StringData *fileName, cons
940940
}
941941
catch ( IECore::Exception &e )
942942
{
943-
IECore::msg( IECore::MessageHandler::Error, "LinkedScene::expandLink", e.what() );
943+
IECore::msg( IECore::MessageHandler::Error, "LinkedScene::expandLink", std::string( e.what() ) + " when expanding link from file \"" + m_mainScene->fileName() + "\"" );
944944
linkDepth = 0;
945945
return 0;
946946
}

0 commit comments

Comments
 (0)