reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit 489482e6aa7fea27cb3ca1a483bf3c41d85fe86b
parent 9b01ef3f16827f21db29b786e310e544121cc3de
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Sun, 26 Feb 2017 01:54:07 -0500

archive: show an error when an unknown token is encountered

Diffstat:
Msrc/archive.cpp | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/archive.cpp b/src/archive.cpp @@ -98,6 +98,9 @@ void Archive::import(const auto_string &path, ReaPack *reapack) case 'P': state.importPackage(data); break; + default: + throw reapack_error(format("Unknown token '%s' (skipping)") + % line.substr(0, 4)); } } catch(const reapack_error &e) {