Lines Matching refs:syntax_error
529 void syntax_error(const char* fmt, ...) { in syntax_error() function
1997 if (args->empty()) syntax_error("expected argument"); in next_arg()
2004 if (args->empty()) syntax_error("empty oem command"); in do_oem_command()
2377 if (argc == 0 && !fp->wants_wipe && !fp->wants_set_active) syntax_error("no command"); in Main()
2494 if (!args.empty()) syntax_error("junk after reboot command"); in Main()
2580 syntax_error("missing 'flashing' command"); in Main()
2586 syntax_error("unknown 'flashing' command %s", args[0].c_str()); in Main()
2602 if (args.empty()) syntax_error("invalid gsi command"); in Main()
2622 syntax_error("expected: snapshot-update [cancel|merge]"); in Main()
2630 syntax_error("unknown command %s", command.c_str()); in Main()
2660 syntax_error("OS patch level should be YYYY-MM-DD: %s", arg); in ParseOsPatchLevel()
2662 if (year < 2000 || year >= 2128) syntax_error("year out of range: %d", year); in ParseOsPatchLevel()
2663 if (month < 1 || month > 12) syntax_error("month out of range: %d", month); in ParseOsPatchLevel()
2675 syntax_error("bad OS version: %s", arg); in ParseOsVersion()
2684 if (options.size() < 1) syntax_error("bad options: %s", arg); in ParseFsOption()
2694 syntax_error("unsupported options: %s", options[i].c_str()); in ParseFsOption()