X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=t%2Fmoe%2Fconfig_parser.py;h=6dec8c9cd2a13d91e6a91b5ba32c5d7a8c933a7e;hb=5ad8b4f69ab4fdf4d75f5a56fc72ef2988f1da1f;hp=ce723baf8ff52900e6cc6aefa1ee1214fd2d6b33;hpb=750990d7dbbaf2740f290a26dab527ce4444cbfb;p=eval.git diff --git a/t/moe/config_parser.py b/t/moe/config_parser.py index ce723ba..6dec8c9 100644 --- a/t/moe/config_parser.py +++ b/t/moe/config_parser.py @@ -236,8 +236,10 @@ class ConfigParser(object): op = 'SET' elif self.nexts(self.c_append): op = 'APPEND' + elif self.eof(): + self.syntax_error('Unexpected end of file.') else: - self.syntax_error('Unknown operation.') + self.syntax_error('Unknown operation: %r...', self.peek(10)) self.p_WS() exp = self.p_EXPRESSION() vname = (self.prefix+self.c_varname_sep+varname).lstrip(self.c_varname_sep)