Browse Source

convert mysql neko errors to haxe.

Nicolas Cannasse 19 years ago
parent
commit
5178cb114f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      std/neko/db/Mysql.hx

+ 3 - 1
std/neko/db/Mysql.hx

@@ -131,8 +131,10 @@ private class MysqlConnection implements Connection {
 			D.result_set_conv_date(r,function(d) { return untyped Date.new1(d); });
 			return new MysqlResultSet(r);
 		} catch( e : Dynamic ) {
-			untyped if( __dollar__typeof(e) == __dollar__tobject && __dollar__typeof(e.msg) == __dollar__tstring )
+			untyped if( __dollar__typeof(e) == __dollar__tobject && __dollar__typeof(e.msg) == __dollar__tstring ) {
 				e.msg = new String(e.msg);
+				e.file = new String(e.file);
+			}
 			untyped __dollar__rethrow(e);
 			return null;
 		}