Skip to content

Commit

Permalink
src/main: Semi-useful error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnell committed Jul 10, 2011
1 parent 1a5249d commit 44eceaf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ int main(int argc, char **argv) {

CHECK(argc == 1) << "Non-flag arguments on command line";

CHECK(!FLAGS_game_pb.empty());

Game game;
if (!google::protobuf::TextFormat::ParseFromString(FLAGS_game_pb, &game)) {
LOG(FATAL) << "Error parsing Game pb:\n"
Expand Down

0 comments on commit 44eceaf

Please sign in to comment.