Skip to content

Commit 1bd9d01

Browse files
kansgouriano
authored andcommitted
JIRA:RW-2388 Downgraded asnvalidate MissingEnvironmentalSample message for Patent records
git-svn-id: https://anonsvn.ncbi.nlm.nih.gov/repos/v1/trunk/c++@103503 78c7ea69-d796-4a43-9a09-de51944f1b03
1 parent f3b4b11 commit 1bd9d01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/objtools/validator/unit_test/unit_test_validator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6870,7 +6870,7 @@ BOOST_AUTO_TEST_CASE(Test_Descr_BioSourceInconsistency)
68706870
unit_test_util::SetSubSource(entry, CSubSource::eSubtype_environmental_sample, "");
68716871
unit_test_util::SetSubSource(entry, CSubSource::eSubtype_isolation_source, "");
68726872
unit_test_util::SetSubSource(entry, CSubSource::eSubtype_metagenomic, "true");
6873-
expected_errors.push_back(new CExpectedError("lcl|good", eDiag_Critical, "MissingEnvironmentalSample",
6873+
expected_errors.push_back(new CExpectedError("lcl|good", eDiag_Error, "MissingEnvironmentalSample",
68746874
"Metagenomic should also have environmental sample annotated"));
68756875
eval = validator.Validate(seh, options);
68766876
CheckErrors(*eval, expected_errors);

src/objtools/validator/valid_biosource.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ const CSeq_entry *ctx)
10051005
"Transgenic and environmental sample should not both be present", obj, ctx);
10061006
}
10071007
if (count[CSubSource::eSubtype_metagenomic] && !count[CSubSource::eSubtype_environmental_sample]) {
1008-
PostObjErr(eDiag_Critical, eErr_SEQ_DESCR_MissingEnvironmentalSample,
1008+
PostObjErr(eDiag_Error, eErr_SEQ_DESCR_MissingEnvironmentalSample,
10091009
"Metagenomic should also have environmental sample annotated", obj, ctx);
10101010
}
10111011
if (count[CSubSource::eSubtype_sex] && count[CSubSource::eSubtype_mating_type]) {

0 commit comments

Comments
 (0)