Skip to content

Commit

Permalink
#2616 - Wrong error message if three-letter sequence code haven't be…
Browse files Browse the repository at this point in the history
…en recognized (#2629)
  • Loading branch information
AliaksandrDziarkach authored Nov 11, 2024
1 parent f9c40ce commit 5f7f1e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/wasm/indigo-ketcher/indigo-ketcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,13 +385,15 @@ namespace indigo
objectId = indigoLoadSequenceFromString(data.c_str(), seq_it->second.c_str(), library);
if (objectId >= 0)
return IndigoKetcherObject(objectId, IndigoKetcherObject::EKETMolecule);
exceptionMessages.emplace_back(indigoGetLastError());
}
else if (input_format != options.end() && fasta_formats.count(input_format->second))
{
auto fasta_it = fasta_formats.find(input_format->second);
objectId = indigoLoadFastaFromString(data.c_str(), fasta_it->second.c_str(), library);
if (objectId >= 0)
return IndigoKetcherObject(objectId, IndigoKetcherObject::EKETMolecule);
exceptionMessages.emplace_back(indigoGetLastError());
}
else if (input_format != options.end() && input_format->second == "chemical/x-idt")
{
Expand Down

0 comments on commit 5f7f1e6

Please sign in to comment.