Line | |
---|
1 | ## A useful dict with error codes to text |
---|
2 | # |
---|
3 | # Author: Bas van der Vlies <bas.vandervlies@surfsara.nl> |
---|
4 | # |
---|
5 | # SVN Info: |
---|
6 | # $Id: errors.py 429 2005-11-04 13:59:06Z bas $ |
---|
7 | # |
---|
8 | |
---|
9 | def error(): |
---|
10 | """ |
---|
11 | Check if there is an error, if so fetch the error message string. |
---|
12 | It says more then a number! |
---|
13 | """ |
---|
14 | e = get_error() |
---|
15 | return (e, pbs_strerror(e)) |
---|
16 | # return (e, errors_txt[e]) |
---|
17 | # else: |
---|
18 | # return (e, "Could not find a text for this error, uhhh") |
---|
Note: See
TracBrowser
for help on using the repository browser.