Skip to content

Commit

Permalink
Track::Loader: improve parsing log
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreguillot committed Sep 9, 2024
1 parent 570e5e7 commit b8f707e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Source/Track/AnlTrackLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ std::variant<Track::Results, juce::String> Track::Loader::loadFromBinary(std::is
}
else
{
return {juce::translate("Parsing error - invalid type")};
return {juce::translate("Parsing error - invalid type ") + stype};
}

advancement.store(1.0f);
Expand Down Expand Up @@ -844,7 +844,7 @@ std::variant<Track::Results, juce::String> Track::Loader::loadFromCsv(std::istre
std::getline(linestream, value, separator);
if(time.empty() || duration.empty())
{
return {juce::translate("Parsing error")};
return {juce::translate("Parsing error - time and duration")};
}
else if(std::isdigit(static_cast<int>(time[0])) && std::isdigit(static_cast<int>(duration[0])))
{
Expand Down Expand Up @@ -873,7 +873,7 @@ std::variant<Track::Results, juce::String> Track::Loader::loadFromCsv(std::istre
{
if(mode == Mode::point)
{
return {juce::translate("Parsing error")};
return {juce::translate("Parsing error - mode")};
}
mode = Mode::marker;
markerChannel.push_back({});
Expand Down Expand Up @@ -902,7 +902,7 @@ std::variant<Track::Results, juce::String> Track::Loader::loadFromCsv(std::istre
{
return Track::Results(std::move(points));
}
return {juce::translate("Parsing error")};
return {juce::translate("Parsing error - unknown mode")};
}

std::variant<Track::Results, juce::String> Track::Loader::loadFromReaper(std::istream& stream, std::atomic<bool> const& shouldAbort, std::atomic<float>& advancement)
Expand Down Expand Up @@ -960,7 +960,7 @@ std::variant<Track::Results, juce::String> Track::Loader::loadFromReaper(std::is

if(index.empty() || start.empty())
{
return {juce::translate("Parsing error")};
return {juce::translate("Parsing error - time and duration")};
}
else if(std::isdigit(static_cast<int>(start[0])))
{
Expand Down

0 comments on commit b8f707e

Please sign in to comment.