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

49:    case 200..399:    break;    default: -  throw(({"SMTP: "+c+"\n"+(comment?"SMTP: "+comment+"\n":"")+ -  "SMTP: "+reply_codes[r]+"\n", backtrace()})); +  error( "SMTP: "+c+"\n"+(comment?"SMTP: "+comment+"\n":"")+ +  "SMTP: "+reply_codes[r]+"\n" );    }    return r;    }
89:       if(!server || !connect(server, port))    { -  throw(({"Failed to connect to mail server.\n",backtrace()})); +  error("Failed to connect to mail server.\n");    }    }       if(readreturncode()/100 != 2) -  throw(({"Connection refused by SMTP server.\n",backtrace()})); +  error("Connection refused by SMTP server.\n");       if(catch(cmd("EHLO "+gethostname())))    cmd("HELO "+gethostname(), "greeting failed.");