Branch: Tag:

2002-03-09

2002-03-09 18:28:02 by Martin Nilsson <mani@lysator.liu.se>

throw -> error

Rev: lib/modules/Cache.pmod/Storage.pmod/Base.pike:1.7
Rev: lib/modules/Cache.pmod/cache.pike:1.9
Rev: lib/modules/Calendar_I.pmod/Gregorian.pmod:1.27
Rev: lib/modules/Crypto/_rsa.pike:1.6
Rev: lib/modules/Crypto/dsa.pike:1.11
Rev: lib/modules/Crypto/randomness.pmod:1.21
Rev: lib/modules/Crypto/rsa.pike:1.31
Rev: lib/modules/Filesystem.pmod/Tar.pmod:1.13
Rev: lib/modules/Getopt.pmod:1.19
Rev: lib/modules/Graphics.pmod/Graph.pmod/create_bars.pike:1.7
Rev: lib/modules/Graphics.pmod/Graph.pmod/create_graph.pike:1.9
Rev: lib/modules/Graphics.pmod/Graph.pmod/create_pie.pike:1.8
Rev: lib/modules/Languages.pmod/PLIS.pmod:1.14
Rev: lib/modules/Parser.pmod/XML.pmod/Tree.pmod:1.15
Rev: lib/modules/Protocols.pmod/DNS.pmod:1.62
Rev: lib/modules/Protocols.pmod/NNTP.pmod:1.10
Rev: lib/modules/Protocols.pmod/SMTP.pmod:1.20

126:    if(i == sizeof(argv)-1)    {    if (throw_errors) { -  throw(({ "No argument to option "+tmp+".\n", -  backtrace() })); +  error( "No argument to option "+tmp+".\n" );    } else {    werror("No argument to option "+tmp+".\n");    exit(1);
159:    if(i == sizeof(argv)-1)    {    if (throw_errors) { -  throw(({ "No argument to option -"+argv[i][j..j]+".\n", -  backtrace() })); +  error( "No argument to option -"+argv[i][j..j]+".\n" );    } else {    werror("No argument to option -"+argv[i][j..j]+".\n");    exit(1);
335:    if(e==sizeof(argv)-1)    {    if (throw_errors) { -  throw(({ "No argument to option "+opt+".\n", -  backtrace() })); +  error( "No argument to option "+opt+".\n" );    } else {    werror("No argument to option "+opt+".\n");    exit(1);
365:    if(e==sizeof(argv)-1)    {    if (throw_errors) { -  throw(({ "No argument to option "+opt+".\n", -  backtrace() })); +  error( "No argument to option "+opt+".\n" );    } else {    werror("No argument to option "+opt+".\n");    exit(1);
457:    break;    }else{    if (throw_errors) { -  throw(({ "Unknown option "+argv[i]+".\n", -  backtrace() })); +  error( "Unknown option "+argv[i]+".\n" );    } else {    werror("Unknown option "+argv[i]+".\n");    exit(1);
467:    }else{    if(strlen(argv[i]) == 2) {    if (throw_errors) { -  throw(({ "Unknown option "+argv[i]+".\n", -  backtrace() })); +  error( "Unknown option "+argv[i]+".\n" );    } else {    werror("Unknown option "+argv[i]+".\n");    }    } else {    if (throw_errors) { -  throw(({ "Unknown options "+argv[i]+".\n", -  backtrace() })); +  error( "Unknown options "+argv[i]+".\n" );    } else {    werror("Unknown options "+argv[i]+".\n");    }