/** * @file rhdebug.cc * * @brief * * @date May 14, 2013 * @author wheffner * * Copyright (c) 2013 Perforce Software * Confidential. All Rights Reserved. */ # include # include # include # include # include # include # include # include "rpcdebug.h" void DumpError( Error &e, const char *func ) { StrBuf buf; e.Fmt( buf, EF_NEWLINE ); StrBuf msg = "Error in "; msg << func << ": " << buf << "\n"; p4debug.printf( msg.Text() ); }