From 7d328bb6d38c758fc4babe5cfa4acbdbade9cc00 Mon Sep 17 00:00:00 2001 From: ctw-ian Date: Tue, 19 Jul 2022 16:31:07 +0800 Subject: [PATCH] Using std:cerr to present the compilation error Using std:cerr to report the error so that 262 framework can capture it Signed-off-by: ctw-ian Change-Id: I883ef3f1b60a97be877815969d05d3739b7419d5 --- es2panda/aot/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/es2panda/aot/main.cpp b/es2panda/aot/main.cpp index ad0dde48b4..79c5131dec 100644 --- a/es2panda/aot/main.cpp +++ b/es2panda/aot/main.cpp @@ -130,8 +130,8 @@ int Run(int argc, const char **argv) return 0; } - std::cout << err.TypeString() << ": " << err.Message(); - std::cout << " [" << options->SourceFile() << ":" << err.Line() << ":" << err.Col() << "]" << std::endl; + std::cerr << err.TypeString() << ": " << err.Message(); + std::cerr << " [" << options->SourceFile() << ":" << err.Line() << ":" << err.Col() << "]" << std::endl; return err.ErrorCode(); } -- Gitee