# HG changeset patch # User Miguel Bazdresch # Date 1330613939 0 # Node ID 245963d3d6289934c4d2e7689722aa43fc582359 # Parent d27e638b1c3aa089a49aebe113cfce34cd2412f0 pkg: bug fix - accessing non-existent variable for error message diff --git a/scripts/pkg/pkg.m b/scripts/pkg/pkg.m --- 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