mirror of https://github.com/nodejs/node.git
Fix Engrish in error messages.
parent
db0a1dc7d9
commit
17524432ff
|
@ -1015,7 +1015,7 @@ Handle<Value> Connection::EncIn(const Arguments& args) {
|
|||
size_t len = args[2]->Int32Value();
|
||||
if (off + len > buffer_length) {
|
||||
return ThrowException(Exception::Error(
|
||||
String::New("Length is extends beyond buffer")));
|
||||
String::New("off + len > buffer.length")));
|
||||
}
|
||||
|
||||
int bytes_written = BIO_write(ss->bio_read_, buffer_data + off, len);
|
||||
|
@ -1054,7 +1054,7 @@ Handle<Value> Connection::ClearOut(const Arguments& args) {
|
|||
size_t len = args[2]->Int32Value();
|
||||
if (off + len > buffer_length) {
|
||||
return ThrowException(Exception::Error(
|
||||
String::New("Length is extends beyond buffer")));
|
||||
String::New("off + len > buffer.length")));
|
||||
}
|
||||
|
||||
if (!SSL_is_init_finished(ss->ssl_)) {
|
||||
|
@ -1127,7 +1127,7 @@ Handle<Value> Connection::EncOut(const Arguments& args) {
|
|||
size_t len = args[2]->Int32Value();
|
||||
if (off + len > buffer_length) {
|
||||
return ThrowException(Exception::Error(
|
||||
String::New("Length is extends beyond buffer")));
|
||||
String::New("off + len > buffer.length")));
|
||||
}
|
||||
|
||||
int bytes_read = BIO_read(ss->bio_write_, buffer_data + off, len);
|
||||
|
@ -1167,7 +1167,7 @@ Handle<Value> Connection::ClearIn(const Arguments& args) {
|
|||
size_t len = args[2]->Int32Value();
|
||||
if (off + len > buffer_length) {
|
||||
return ThrowException(Exception::Error(
|
||||
String::New("Length is extends beyond buffer")));
|
||||
String::New("off + len > buffer.length")));
|
||||
}
|
||||
|
||||
if (!SSL_is_init_finished(ss->ssl_)) {
|
||||
|
|
|
@ -730,7 +730,7 @@ static Handle<Value> Write(const Arguments& args) {
|
|||
ssize_t len = args[3]->Int32Value();
|
||||
if (off + len > buffer_length) {
|
||||
return ThrowException(Exception::Error(
|
||||
String::New("Length is extends beyond buffer")));
|
||||
String::New("off + len > buffer.length")));
|
||||
}
|
||||
|
||||
ASSERT_OFFSET(args[4]);
|
||||
|
|
|
@ -406,7 +406,7 @@ public:
|
|||
size_t len = args[2]->Int32Value();
|
||||
if (off+len > buffer_len) {
|
||||
return ThrowException(Exception::Error(
|
||||
String::New("Length is extends beyond buffer")));
|
||||
String::New("off + len > buffer.length")));
|
||||
}
|
||||
|
||||
// Assign 'buffer_' while we parse. The callbacks will access that varible.
|
||||
|
|
Loading…
Reference in New Issue