diff options
author | Ryan <ry@tinyclouds.org> | 2009-09-09 17:35:59 +0200 |
---|---|---|
committer | Ryan <ry@tinyclouds.org> | 2009-09-09 17:35:59 +0200 |
commit | 393caeb4c926ec7a511b5845c5707c7b19cf8424 (patch) | |
tree | cde73eeea599baa934c8a8b543973502283b99bd /src/node_stdio.cc | |
parent | 8890070b88361c1fa7cc0d6f9ed9410a7dd0509a (diff) | |
download | node-393caeb4c926ec7a511b5845c5707c7b19cf8424.tar.gz |
Add Exception::Error where missing.
Diffstat (limited to 'src/node_stdio.cc')
-rw-r--r-- | src/node_stdio.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_stdio.cc b/src/node_stdio.cc index ff703c5e3..209857d70 100644 --- a/src/node_stdio.cc +++ b/src/node_stdio.cc @@ -155,7 +155,7 @@ Open (const Arguments& args) HandleScope scope; if (stdin_fd >= 0) { - return ThrowException(String::New("stdin already open")); + return ThrowException(Exception::Error(String::New("stdin already open"))); } stdin_encoding = UTF8; @@ -190,7 +190,7 @@ Close (const Arguments& args) HandleScope scope; if (stdin_fd < 0) { - return ThrowException(String::New("stdin not open")); + return ThrowException(Exception::Error(String::New("stdin not open"))); } evcom_reader_close(&in); |