7220331d99c960562d2dbd5b293bf0002827043a max Sat May 16 08:06:42 2015 -0700 add a hg.conf option that makes sure that errAbort messages are always shown to the user, even when they are before a Content-type, refs #15332 diff --git src/inc/errAbort.h src/inc/errAbort.h index 4fd645b..ba6f81c 100644 --- src/inc/errAbort.h +++ src/inc/errAbort.h @@ -11,30 +11,34 @@ * * Most functions in this library will call errAbort() * if they run out of memory. * * This file is copyright 2002 Jim Kent, but license is hereby * granted for all use - public, private or commercial. */ #ifndef ERRABORT_H #define ERRABORT_H boolean isErrAbortInProgress(); /* Flag to indicate that an error abort is in progress. * Needed so that a warn handler can tell if it's really * being called because of a warning or an error. */ +void errAbortSetDoContentType(boolean value); +/* change the setting of doContentType, ie. if errorAbort should print a + * http Content type line. */ + void errAbort(char *format, ...) /* Abort function, with optional (printf formatted) error message. */ #if defined(__GNUC__) __attribute__((format(printf, 1, 2))) #endif ; void vaErrAbort(char *format, va_list args); /* Abort function, with optional (vprintf formatted) error message. */ void errnoAbort(char *format, ...) /* Prints error message from UNIX errno first, then does errAbort. */ #if defined(__GNUC__) __attribute__((format(printf, 1, 2))) #endif