Ver Fonte

better msg for UNL

Sebastian Bittrich há 3 anos atrás
pai
commit
b87beb4a6e
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      src/mol-io/writer/mol/encoder.ts

+ 2 - 2
src/mol-io/writer/mol/encoder.ts

@@ -26,8 +26,8 @@ export class MolEncoder extends LigandEncoder {
 
         const atomMap = this.componentAtomData.entries.get(name)!;
         const bondMap = this.componentBondData.entries.get(name)!;
-        // happens for unknown ligands like UNL
-        if (!atomMap) throw Error(`Component ${name} is not registered in the Chemical Component Dictionary`);
+        // happens for the unknown ligands (UNL)
+        if (!atomMap) throw Error(`The Chemical Component Dictionary doesn't hold any atom data for ${name}`);
 
         let bondCount = 0;
         let chiral = false;