From: Tara L Andrews Date: Mon, 17 Sep 2012 13:21:56 +0000 (+0200) Subject: bugfix for xml upload parsing X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=699ab7ea571b16c80b95109d98567329e077e6ad;p=scpubgit%2Fstemmaweb.git bugfix for xml upload parsing --- diff --git a/lib/stemmaweb/Controller/Root.pm b/lib/stemmaweb/Controller/Root.pm index 4d42c28..4ddcfe6 100644 --- a/lib/stemmaweb/Controller/Root.pm +++ b/lib/stemmaweb/Controller/Root.pm @@ -130,7 +130,10 @@ sub newtradition :Local :Args(0) { } catch { $errmsg = "Unexpected parsing error"; } - last if $tradition; + if( $tradition ) { + $errmsg = undef; + last; + } } } elsif( $ext =~ /^(txt|csv|xls(x)?)$/ ) { # If it's Excel we need to pass excel => $ext;