Mercurial > hg > octave-nkf
changeset 14444:245963d3d628 stable
pkg: bug fix - accessing non-existent variable for error message
author | Miguel Bazdresch <lmb@2pif.info> |
---|---|
date | Thu, 01 Mar 2012 14:58:59 +0000 |
parents | d27e638b1c3a |
children | 12ccdce2c216 721be41ea988 |
files | scripts/pkg/pkg.m |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/pkg/pkg.m +++ b/scripts/pkg/pkg.m @@ -1751,7 +1751,8 @@ value = strip (line (colon+1:end)); if (length (value) == 0) fclose (fid); - error ("the keyword %s has an empty value", desc.keywords{end}); + error ("The keyword `%s' of the package `%s' has an empty value", + keyword, desc.name); endif desc.(keyword) = value; endif