changeset 28066:977793472fc9

mkdir.m: Use standard error message syntax when nargout == 0 (bug #57830) * mkdir.m: Change error message to say "operation failed" and then include any error text from underlying mkdir call.
author Rik <rik@octave.org>
date Sun, 16 Feb 2020 14:39:54 -0800
parents 7a22be5833c7
children 11072ea6a16c
files scripts/miscellaneous/mkdir.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/miscellaneous/mkdir.m	Sun Feb 16 12:39:36 2020 -0800
+++ b/scripts/miscellaneous/mkdir.m	Sun Feb 16 14:39:54 2020 -0800
@@ -73,7 +73,7 @@
 
   if (nargout == 0)
     if (! sts)
-      error ("mkdir: failed to create directory");
+      error ("mkdir: operation failed: %s", msg);
     endif
   else
     status = sts;