diff --git a/es2panda/aot/main.cpp b/es2panda/aot/main.cpp index ad0dde48b47004dd97d13f6bbc7eb2125990f32c..79c5131dec17642a0799feb1dc1c771c6999f135 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(); }