From 4f79036a7e270378154f8bef960cd3fabb3ba215 Mon Sep 17 00:00:00 2001 From: worker24h Date: Thu, 21 May 2020 19:14:35 +0800 Subject: [PATCH] Add error code into error message (#3645) --- be/src/exec/olap_scanner.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/be/src/exec/olap_scanner.cpp b/be/src/exec/olap_scanner.cpp index e62a60c197..f0af8e9612 100644 --- a/be/src/exec/olap_scanner.cpp +++ b/be/src/exec/olap_scanner.cpp @@ -257,7 +257,9 @@ Status OlapScanner::get_batch( // Read one row from reader auto res = _reader->next_row_with_aggregation(&_read_row_cursor, mem_pool.get(), batch->agg_object_pool(), eof); if (res != OLAP_SUCCESS) { - return Status::InternalError("Internal Error: read storage fail."); + std::stringstream ss; + ss << "Internal Error: read storage fail. res=" << res; + return Status::InternalError(ss.str()); } // If we reach end of this scanner, break if (UNLIKELY(*eof)) {