Skip to content

Commit

Permalink
Log the results of parsing msgfmt output.
Browse files Browse the repository at this point in the history
  • Loading branch information
vslavik committed Sep 2, 2012
1 parent f4a71b5 commit 3c9d590
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/gexecute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ bool ExecuteGettextAndParseOutput(const wxString& cmdline, GettextErrors& errors
for ( size_t i = 0; i < gstderr.size(); i++ )
{
const wxString e = gstderr[i];
wxLogTrace(_T("poedit.execute"), _T(" stderr: %s"), e.c_str());
if ( e.empty() )
continue;

Expand All @@ -145,8 +146,15 @@ bool ExecuteGettextAndParseOutput(const wxString& cmdline, GettextErrors& errors
rec.line = (int)num;
rec.text = reError.GetMatch(e, 3);
errors.push_back(rec);
wxLogTrace(_T("poedit.execute"),
_T(" => parsed error = \"%s\" at %d"),
rec.text.c_str(), rec.line);
}
else
{
wxLogTrace(_T("poedit.execute"), _T(" (unrecognized line!)"));
// FIXME: handle the rest of output gracefully too
}
// FIXME: handle the rest of output gracefully too
}

return retcode == 0;
Expand Down

0 comments on commit 3c9d590

Please sign in to comment.