소스 검색

better msg for UNL

Sebastian Bittrich 3 년 전
부모
커밋
b87beb4a6e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;