Report errors out of sqlite3_open16(). (CVS 2802)

FossilOrigin-Name: f5b58163d4520fa3e7137e8445a8ef19aae3e799
diff --git a/src/main.c b/src/main.c
index c2ab9df..d0fa729 100644
--- a/src/main.c
+++ b/src/main.c
@@ -14,7 +14,7 @@
 ** other files are for internal use by SQLite and should not be
 ** accessed by users of the library.
 **
-** $Id: main.c,v 1.305 2005/12/06 12:52:59 danielk1977 Exp $
+** $Id: main.c,v 1.306 2005/12/06 13:19:08 drh Exp $
 */
 #include "sqliteInt.h"
 #include "os.h"
@@ -830,7 +830,7 @@
   if( zFilename8 ){
     rc = openDatabase(zFilename8, ppDb);
     if( rc==SQLITE_OK && *ppDb ){
-      sqlite3_exec(*ppDb, "PRAGMA encoding = 'UTF-16'", 0, 0, 0);
+      rc = sqlite3_exec(*ppDb, "PRAGMA encoding = 'UTF-16'", 0, 0, 0);
     }
   }
   if( pVal ){