Mercurial > hg > octave-nkf
changeset 15855:4294430ef736
strread: make warning mesage more tractable
author | Philip Nienhuis <prnienhuis@users.sf.net> |
---|---|
date | Fri, 28 Dec 2012 00:11:41 +0100 |
parents | 98f6abe01b5a |
children | 37371278f9fc |
files | scripts/io/strread.m |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/io/strread.m +++ b/scripts/io/strread.m @@ -597,7 +597,8 @@ else if (! idg(ii) && ! isempty (strfind (fmt_words{ii-1}, "%s"))) ## Trailing literal. If preceding format == '%s' this is an error - warning ("Ambiguous '%s' specifier next to literal in column %d", icol); + warning ... + ("strread: ambiguous '%s' specifier next to literal in column %d", icol); elseif (idg(ii)) ## Current field = fixed width. Strip into icol, rest in icol+1 sw = regexp (fmt_words{ii}, '\d', "once");