diff --git a/core/include/LocationKind.h b/core/include/LocationKind.h index 7cfcc82..7ac2bf6 100644 --- a/core/include/LocationKind.h +++ b/core/include/LocationKind.h @@ -30,7 +30,7 @@ namespace sourcetrail LOCAL_SYMBOL = 3, SIGNATURE = 4, COMMENT = 5, - ERROR = 6, + INDEXER_ERROR = 6, FULLTEXT_SEARCH = 7, SCREEN_SEARCH = 8 }; diff --git a/core/src/LocationKind.cpp b/core/src/LocationKind.cpp index 5cf2a81..2295ca3 100644 --- a/core/src/LocationKind.cpp +++ b/core/src/LocationKind.cpp @@ -34,7 +34,7 @@ namespace sourcetrail LocationKind::LOCAL_SYMBOL, LocationKind::SIGNATURE, LocationKind::COMMENT, - LocationKind::ERROR, + LocationKind::INDEXER_ERROR, LocationKind::FULLTEXT_SEARCH, LocationKind::SCREEN_SEARCH }; diff --git a/core/src/SourcetrailDBWriter.cpp b/core/src/SourcetrailDBWriter.cpp index 9a4773a..5332afb 100644 --- a/core/src/SourcetrailDBWriter.cpp +++ b/core/src/SourcetrailDBWriter.cpp @@ -584,7 +584,7 @@ namespace sourcetrail try { const int errorId = m_storage->addError(StorageErrorData(message, "", fatal, true)); - addSourceLocation(errorId, location, LocationKind::ERROR); + addSourceLocation(errorId, location, LocationKind::INDEXER_ERROR); return true; } catch (const SourcetrailException e) diff --git a/core/test/test.cpp b/core/test/test.cpp index d8b8773..070fc3a 100644 --- a/core/test/test.cpp +++ b/core/test/test.cpp @@ -514,7 +514,7 @@ namespace sourcetrail const std::vector sourceLocations = storage->getAll(); REQUIRE(sourceLocations.size() == 1); - REQUIRE(sourceLocations.front().locationKind == locationKindToInt(LocationKind::ERROR)); + REQUIRE(sourceLocations.front().locationKind == locationKindToInt(LocationKind::INDEXER_ERROR)); REQUIRE(sourceLocations.front().startLineNumber == startLine); REQUIRE(sourceLocations.front().startColumnNumber == startCol); REQUIRE(sourceLocations.front().endLineNumber == endLine);