diff scripts/plot/uigetdir.m @ 11295:75ff3db6a687

Simplify code for uimenu.m. Fix error messages for ui file functions.
author Kai Habel <kai.habel@gmx.de>
date Thu, 25 Nov 2010 17:16:46 +0100
parents f44c47959256
children c776f063fefe
line wrap: on
line diff
--- a/scripts/plot/uigetdir.m
+++ b/scripts/plot/uigetdir.m
@@ -30,7 +30,7 @@
 function [retdir] = uigetdir (init_path = pwd, name = "Choose directory?")
 
   if (!ischar(init_path) || !ischar(name))
-    error ("Expecting string arguments.");
+    error ("uigetdir: expecting string arguments.");
   endif
   
   if (nargin > 2)
@@ -43,7 +43,7 @@
       endif
       retdir = __fltk_uigetfile__ ("", name, init_path, [240, 120], "dir");
   else
-    error ("uigetdir requires fltk backend.");
+    error ("uigetdir: fltk backend required.");
   endif
 
 endfunction