File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11Changelog
22=========
3+ v9.4.2
4+ ------
5+
6+ Added
7+ ~~~~~
8+ - Stdout the detail error_info of the `generation_errors ` in the launch request.
39
410v9.4.1
511------
Original file line number Diff line number Diff line change @@ -961,6 +961,21 @@ def launch(
961961 if len (generation_errs ) > 0 :
962962 for errors in generation_errs :
963963 click .echo ("\n \n " + str (errors ["message" ]))
964+ if errors .get ("info" ):
965+ errors_info = errors .get ("info" )
966+ indexes = [
967+ idx
968+ for idx in range (len (errors_info ))
969+ if errors_info .startswith ("Error" , idx )
970+ or errors_info .startswith ("error" , idx )
971+ ]
972+ # 100 length should give enough information
973+ errors_info_msgs = [
974+ str (errors_info [idx : idx + 100 ]) for idx in indexes
975+ ]
976+ for info_msg in errors_info_msgs :
977+ click .echo ("\n " + info_msg )
978+
964979 click .echo ("\n Please fix the above errors and try again." )
965980 return
966981
You can’t perform that action at this time.
0 commit comments