You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/10/19 00:12:22 UTC

[GitHub] [tvm] electriclilies commented on a change in pull request #9311: [Error reporting] Replace runtime errors with LOG(FATAL)

electriclilies commented on a change in pull request #9311:
URL: https://github.com/apache/tvm/pull/9311#discussion_r731399992



##########
File path: src/ir/module.cc
##########
@@ -170,7 +170,7 @@ Constructor IRModuleNode::GetConstructor(const String& adt, const String& cons)
   }
 
   LOG(FATAL) << adt << " does not contain constructor " << cons;
-  throw std::runtime_error("Constructor Not Found.");
+  return {};

Review comment:
       oh good tip! thanks :) 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org