diff src/DLD-FUNCTIONS/urlwrite.cc @ 6981:6ade2b60d1c2

[project @ 2007-10-09 14:45:39 by jwe]
author jwe
date Tue, 09 Oct 2007 14:45:39 +0000
parents 10da0f6d85c2
children 827be634619e
line wrap: on
line diff
--- 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;