changeset 6981:6ade2b60d1c2

[project @ 2007-10-09 14:45:39 by jwe]
author jwe
date Tue, 09 Oct 2007 14:45:39 +0000
parents e5d51f9fa1c9
children 44b18d51d1db
files src/ChangeLog src/DLD-FUNCTIONS/urlwrite.cc
diffstat 2 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Mon Oct 08 21:52:04 2007 +0000
+++ b/src/ChangeLog	Tue Oct 09 14:45:39 2007 +0000
@@ -1,3 +1,9 @@
+2007-10-09  John W. Eaton  <jwe@octave.org>
+
+	* DLD-FUNCTIONS/urlwrite.cc (Furlwrite, Furlread) [! HAVE_CURL]:
+	Throw error instead of returning empty string hiding error message
+	in third return value.
+
 2007-10-08  David Bateman  <dbateman@free.fr>
 
 	*  input.cc (quoting_filename): Function to add a leading quote to
--- a/src/DLD-FUNCTIONS/urlwrite.cc	Mon Oct 08 21:52:04 2007 +0000
+++ b/src/DLD-FUNCTIONS/urlwrite.cc	Tue Oct 09 14:45:39 2007 +0000
@@ -320,9 +320,7 @@
     error ("urlwrite: curl: %s", curl_easy_strerror (res));
 
 #else
-  retval(2) = "urlwrite: not available in this version of Octave";
-  retval(1) = 0;
-  retval(0) = "";
+  error ("urlwrite: not available in this version of Octave");
 #endif
 
   return retval;
@@ -439,9 +437,7 @@
     error ("urlread: curl: %s", curl_easy_strerror (res));
 
 #else
-  retval(2) = "urlread: not available in this version of Octave";
-  retval(1) = 0;
-  retval(0) = "";
+  error ("urlread: not available in this version of Octave");
 #endif
 
   return retval;