Changeset 2699 for box/trunk/bin


Ignore:
Timestamp:
06/07/2010 22:05:06 (23 months ago)
Author:
chris
Message:

Fix Windows compile errors.

Location:
box/trunk/bin/bbackupquery
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbackupquery/BackupQueries.cpp

    r2697 r2699  
    200200                { 
    201201                        BOX_ERROR("Failed to convert encoding"); 
    202                         return; 
     202                        parsed.failed = true; 
    203203                } 
    204204                 
     
    213213                        { 
    214214                                BOX_ERROR("Failed to convert encoding"); 
    215                                 return; 
     215                                parsed.failed = true; 
    216216                        } 
    217217                         
  • box/trunk/bin/bbackupquery/BackupQueries.h

    r2697 r2699  
    9090                std::string options; 
    9191                std::string completeCommand; 
     92                bool failed; 
     93                ParsedCommand() : failed(false) { } 
    9294        }; 
    9395 
  • box/trunk/bin/bbackupquery/bbackupquery.cpp

    r2698 r2699  
    448448                        BackupQueries::ParsedCommand cmd( 
    449449                                context.ParseCommand(argv[c++], true)); 
    450                         context.DoCommand(cmd); 
     450 
     451                        if(cmd.failed) 
     452                        { 
     453                                BOX_ERROR("Parse failed"); 
     454                        } 
     455                        else 
     456                        { 
     457                                context.DoCommand(cmd); 
     458                        } 
    451459                } 
    452460        } 
     
    493501                        BackupQueries::ParsedCommand cmd( 
    494502                                context.ParseCommand(command, false)); 
    495                         context.DoCommand(cmd); 
    496503                         
     504                        if(cmd.failed) 
     505                        { 
     506                                BOX_ERROR("Parse failed"); 
     507                        } 
     508                        else 
     509                        { 
     510                                context.DoCommand(cmd); 
     511                        } 
     512 
    497513                        if(last_cmd != 0 && ::strcmp(last_cmd, command) == 0) 
    498514                        { 
Note: See TracChangeset for help on using the changeset viewer.