@@ -116,7 +116,7 @@ typedef enum
116
116
if ( !args.Length () || !args[(args.Length ()-1 )]->IsFunction () ) \
117
117
{ \
118
118
msg = NJSMessages::getErrorMsg ( errMissingCallback ); \
119
- NJS_SET_EXCEPTION ( msg.c_str (), msg.length () ); \
119
+ NJS_SET_EXCEPTION ( msg.c_str (), msg.length () ); \
120
120
NanReturnUndefined (); \
121
121
} \
122
122
else \
@@ -218,7 +218,7 @@ typedef enum
218
218
*/
219
219
#define NJS_GET_STRING_FROM_JSON ( val, err, obj, key, index, exitCode ) \
220
220
{ \
221
- Local<Value> v8value = obj->Get (NanNew<v8::String>(key)); \
221
+ Local<Value> v8value = obj->Get (NanNew<v8::String>(key)); \
222
222
err.clear (); \
223
223
if ( v8value->IsString () ) \
224
224
{ \
@@ -316,7 +316,7 @@ typedef enum
316
316
{ \
317
317
msg = NJSMessages::getErrorMsg ( errInvalidPropertyValue, \
318
318
prop ); \
319
- NJS_SET_EXCEPTION ( msg.c_str (), msg.length () ); \
319
+ NJS_SET_EXCEPTION ( msg.c_str (), msg.length () ); \
320
320
} \
321
321
}
322
322
@@ -326,7 +326,7 @@ typedef enum
326
326
* If it not a v8 Number, throw exception.
327
327
* prop is the name of the property
328
328
*/
329
- #define NJS_SET_PROP_DOUBLE ( val, v8value, prop ) \
329
+ #define NJS_SET_PROP_DOUBLE ( val, v8value, prop ) \
330
330
{ \
331
331
string msg; \
332
332
if ( v8value->IsNUmber () ) \
@@ -337,12 +337,12 @@ typedef enum
337
337
{ \
338
338
msg = NJSMessages::getErrorMsg ( errInvalidPropertyValue, \
339
339
prop ); \
340
- NJS_SET_EXCEPTION ( msg.c_str (), msg.length () ); \
340
+ NJS_SET_EXCEPTION ( msg.c_str (), msg.length () ); \
341
341
} \
342
342
}
343
343
344
344
/*
345
- * In case of exception set the flag on connection object based on error number
345
+ * Check if error code indicates the connection is unusable.
346
346
* If the method does not use a connection, pass NULL as connection.
347
347
*/
348
348
#define NJS_SET_CONN_ERR_STATUS ( errNum, conn ) \
0 commit comments