Skip to content

Commit acfb7fb

Browse files
committed
Whitespace and update comment
1 parent 2827d6d commit acfb7fb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/njs/src/njsUtils.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ typedef enum
116116
if( !args.Length() || !args[(args.Length()-1)]->IsFunction() ) \
117117
{ \
118118
msg = NJSMessages::getErrorMsg ( errMissingCallback ); \
119-
NJS_SET_EXCEPTION( msg.c_str(), msg.length() ); \
119+
NJS_SET_EXCEPTION( msg.c_str(), msg.length() ); \
120120
NanReturnUndefined(); \
121121
} \
122122
else \
@@ -218,7 +218,7 @@ typedef enum
218218
*/
219219
#define NJS_GET_STRING_FROM_JSON( val, err, obj, key, index, exitCode ) \
220220
{ \
221-
Local<Value> v8value = obj->Get(NanNew<v8::String>(key)); \
221+
Local<Value> v8value = obj->Get(NanNew<v8::String>(key)); \
222222
err.clear(); \
223223
if( v8value->IsString() ) \
224224
{ \
@@ -316,7 +316,7 @@ typedef enum
316316
{ \
317317
msg = NJSMessages::getErrorMsg ( errInvalidPropertyValue, \
318318
prop ); \
319-
NJS_SET_EXCEPTION( msg.c_str(), msg.length() ); \
319+
NJS_SET_EXCEPTION( msg.c_str(), msg.length() ); \
320320
} \
321321
}
322322

@@ -326,7 +326,7 @@ typedef enum
326326
* If it not a v8 Number, throw exception.
327327
* prop is the name of the property
328328
*/
329-
#define NJS_SET_PROP_DOUBLE( val, v8value, prop ) \
329+
#define NJS_SET_PROP_DOUBLE( val, v8value, prop ) \
330330
{ \
331331
string msg; \
332332
if( v8value->IsNUmber() ) \
@@ -337,12 +337,12 @@ typedef enum
337337
{ \
338338
msg = NJSMessages::getErrorMsg ( errInvalidPropertyValue, \
339339
prop ); \
340-
NJS_SET_EXCEPTION( msg.c_str(), msg.length() ); \
340+
NJS_SET_EXCEPTION( msg.c_str(), msg.length() ); \
341341
} \
342342
}
343343

344344
/*
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.
346346
* If the method does not use a connection, pass NULL as connection.
347347
*/
348348
#define NJS_SET_CONN_ERR_STATUS( errNum, conn ) \

0 commit comments

Comments
 (0)