Lines Matching refs:error
189 # error "HAVE_FUTIMESAT unexpectedly defined"
1043 * of the function in error messages.
1047 * of the parameter in error messages.
1185 /* Inline PyOS_FSPath() for better error messages. */
1509 Return 1 on success, return 0 and raise an exception on error. */
1539 goto error;
1545 goto error;
1553 goto error;
1562 error:
1674 /* Set a POSIX-specific error from errno, and return NULL */
1689 Windows error object, which is non-trivial.
1790 but one that produces Win32 errors instead of DOS error codes.
1899 DWORD fileType, error;
1912 error = GetLastError();
1913 switch (error) {
1925 /* Restore the error from CreateFileW(). */
1927 SetLastError(error);
1936 SetLastError(error);
1948 SetLastError(error);
1962 SetLastError(error);
2070 /* Preserve last error if we are failing */
2071 error = retval ? GetLastError() : 0;
2075 /* Restore last error */
2076 SetLastError(error);
2087 setting it to a POSIX error. Callers should use GetLastError. */
2902 It's an error to use dir_fd or follow_symlinks when specifying path as
3240 It is an error to use dir_fd or follow_symlinks when specifying path as
3643 It is an error to use dir_fd or follow_symlinks when specifying path as
4078 int error = GetLastError();
4079 if (error == ERROR_FILE_NOT_FOUND)
4110 /* FindNextFile sets error to ERROR_NO_MORE_FILES if
4597 int error = 0;
4625 error = GetLastError();
4628 if (!error) {
4631 // uncommonly, LocalFree returns non-zero on error, but still uses
4632 // GetLastError() to see what the error code is
4634 error = GetLastError();
4639 if (error) {
4640 return PyErr_SetFromWindowsErr(error);
4717 /* either nice() or getpriority() returned an error */
5490 Specifying tuples for both times and ns is an error.
5497 It is an error to use dir_fd or follow_symlinks when specifying path
5611 /* Avoid putting the file name into the error here,
5655 /* see previous comment about not putting filename in error here */
5748 goto error;
5751 goto error;
5755 goto error;
5762 goto error;
5766 goto error;
5769 goto error;
5779 goto error;
5784 goto error;
5787 goto error;
5795 goto error;
5803 goto error;
5807 goto error;
5819 error:
5914 /* If we get here it's definitely an error */
5994 /* If we get here it's definitely an error */
7046 ** On error, -1 is returned in all Operating Systems.
7200 goto error;
7212 goto error;
7219 goto error;
7223 goto error;
7239 goto error;
7252 goto error;
7258 goto error;
7263 error:
7311 goto error;
7317 goto error;
7320 goto error;
7328 error:
7395 goto error;
7397 goto error;
7404 goto error;
7408 goto error;
7437 goto error;
7455 error:
7784 goto error;
7790 goto error;
7798 error:
7950 * error anyway, so let's raise it. */
8964 /* This error might be caused by
10127 // return -1/an error (in one confirmed case the destination socket
11225 Translate an error code to a message string.
11576 /* Record the last error in case it's modified by PyMem_Free. */
13150 int error;
13158 error = PyList_Append(result, attribute);
13160 if (error) {
13784 /* Set exception and return -1 on error, 0 for False, 1 for True */
13820 goto error;
13825 goto error;
13829 goto error;
13858 error:
14062 goto error;
14066 goto error;
14071 goto error;
14076 goto error;
14080 goto error;
14088 error:
14155 goto error;
14170 goto error;
14177 goto error;
14186 error:
14494 goto error;
14504 goto error;
14514 goto error;
14547 goto error;
14553 error:
14568 /* For error message reasons, this function is manually inlined in
14658 goto error;
14669 goto error;
14678 error:
15889 PyModule_AddObject(m, "error", PyExc_OSError);