<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -7,5 +7,5 @@ shell:
 	erl -pa ebin
 
 clean:
-	cd src &amp;&amp; make
-	cd priv &amp;&amp; make
+	cd src &amp;&amp; make clean
+	cd priv &amp;&amp; make clean</diff>
      <filename>Makefile</filename>
    </modified>
    <modified>
      <diff>@@ -36,6 +36,28 @@ static ErlDrvData start(ErlDrvPort port, char* cmd) {
   db_create(&amp;db, NULL, 0);
   status = db-&gt;open(db, NULL, DB_PATH, NULL, DB_BTREE, open_flags, 0);
 
+  if(status != 0) {
+    char *error_reason;
+
+    switch(status){
+    case DB_OLD_VERSION:
+      error_reason = &quot;the file was created with a different version.&quot;;
+      break;
+
+    case EINVAL:
+      error_reason = &quot;the file was opened with incorrect flags. Perhaps the system does not support the DB_THREAD flag?&quot;;
+      break;
+
+    case DB_RUNRECOVERY:
+      error_reason = &quot;the file needs to be recovered, it may be corrupt.&quot;;
+      break;
+    default:
+      error_reason = &quot;of an unkown reason.&quot;;
+    }
+
+    fprintf(stderr, &quot;Unabled to open file: %s because %s\n\n&quot;, DB_PATH, error_reason);
+  }
+
   retval-&gt;port = port;
   retval-&gt;db = db;
   </diff>
      <filename>priv/bdb_drv.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4378c320c86a0937ac26107639d72942921d82c7</id>
    </parent>
  </parents>
  <author>
    <name>Matt Williamson</name>
    <email>mwilliamson@mwilliamson-vmware.(none)</email>
  </author>
  <url>http://github.com/dawsdesign/erl_bdb_sample/commit/f6c097bf646e5bd3269c12a4c7146f14fea90bba</url>
  <id>f6c097bf646e5bd3269c12a4c7146f14fea90bba</id>
  <committed-date>2009-05-26T07:48:34-07:00</committed-date>
  <authored-date>2009-05-26T07:48:34-07:00</authored-date>
  <message>Fixed makefile.</message>
  <tree>94a73f7cbd2b01ea6b569733fd958b6a74d93588</tree>
  <committer>
    <name>Matt Williamson</name>
    <email>mwilliamson@mwilliamson-vmware.(none)</email>
  </committer>
</commit>
