diff --git a/src/main/org/openscience/cdk/io/RssWriter.java b/src/main/org/openscience/cdk/io/RssWriter.java
index <HASH>..<HASH> 100644
--- a/src/main/org/openscience/cdk/io/RssWriter.java
+++ b/src/main/org/openscience/cdk/io/RssWriter.java
@@ -241,7 +241,7 @@ public class RssWriter extends DefaultChemObjectWriter {
 	      writer.write(doc.toXML());
 	      writer.flush();
 		}catch(IOException ex){
-			throw new CDKException(ex.getMessage());
+			throw new CDKException(ex.getMessage(), ex);
 		}
 
 	}
calls to CDKException constructor made within a catch block now include the root exception to preserve stack trace

git-svn-id: <URL>