improve error reporting for invalid tab input