Skip to content

Commit

Permalink
make sure an error reading one source document doesn't abort reading …
Browse files Browse the repository at this point in the history
…of other source docs
  • Loading branch information
jjallaire committed Jun 2, 2011
1 parent 5dc9214 commit 383a2b5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/cpp/session/SessionSourceDatabase.cpp
Expand Up @@ -440,11 +440,10 @@ Error list(std::vector<SourceDocument>* pDocs)
// get the source doc
SourceDocument doc ;
Error error = source_database::get(filePath.filename(), &doc);
if (error)
return error ;

// add it to the list
pDocs->push_back(doc);
if (!error)
pDocs->push_back(doc);
else
LOG_ERROR(error);
}
}

Expand Down

0 comments on commit 383a2b5

Please sign in to comment.