summaryrefslogtreecommitdiff
path: root/src/node_stdio.cc
diff options
context:
space:
mode:
authorRyan <ry@tinyclouds.org>2009-09-09 17:35:59 +0200
committerRyan <ry@tinyclouds.org>2009-09-09 17:35:59 +0200
commit393caeb4c926ec7a511b5845c5707c7b19cf8424 (patch)
treecde73eeea599baa934c8a8b543973502283b99bd /src/node_stdio.cc
parent8890070b88361c1fa7cc0d6f9ed9410a7dd0509a (diff)
downloadnode-393caeb4c926ec7a511b5845c5707c7b19cf8424.tar.gz
Add Exception::Error where missing.
Diffstat (limited to 'src/node_stdio.cc')
-rw-r--r--src/node_stdio.cc4
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);