From d72d3d659302b56795b15147027200fc423738a6 Mon Sep 17 00:00:00 2001 From: "A.J. Beamon" Date: Fri, 25 Sep 2020 08:39:34 -0700 Subject: [PATCH] Explicit instantiations of internal_error were not logging the usual details about the error. --- flow/Error.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flow/Error.h b/flow/Error.h index 64f9e1410a..a4d879459b 100644 --- a/flow/Error.h +++ b/flow/Error.h @@ -82,11 +82,12 @@ Error systemErrorCodeToError(); inline Error actor_cancelled() { return Error( error_code_operation_cancelled ); } enum { error_code_actor_cancelled = error_code_operation_cancelled }; -extern Error internal_error_impl( const char* file, int line ); +extern Error internal_error_impl(const char* file, int line); extern Error internal_error_impl(const char* msg, const char* file, int line); extern Error internal_error_impl(const char * a_nm, long long a, const char * op_nm, const char * b_nm, long long b, const char * file, int line); -#define inernal_error_msg(msg) internal_error_impl(msg, __FILE__, __LINE__) +#define internal_error() internal_error_impl(__FILE__, __LINE__) +#define internal_error_msg(msg) internal_error_impl(msg, __FILE__, __LINE__) extern bool isAssertDisabled( int line ); //#define ASSERT( condition ) ((void)0)