File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -108,13 +108,15 @@ def validate_args(args):
108108 if args .command == "dev" and args .dev_command is None :
109109 raise UserError ("Missing subcommand - cfengine dev <subcommand>" )
110110
111+
111112def _main ():
112113 args = get_args ()
113114 if args .log_level :
114115 log .set_level (args .log_level )
115116 validate_args (args )
116117 return run_command_with_args (args )
117118
119+
118120def main ():
119121 if os .getenv ("CFBACKTRACE" ) == "1" :
120122 r = _main ()
@@ -155,7 +157,9 @@ def main():
155157 print ("Error: " + message )
156158 except CFBSProgrammerError as e :
157159 print ("Error: " + str (e ))
158- print (" This is an unexpected error indicating a bug, please create a ticket at:" )
160+ print (
161+ " This is an unexpected error indicating a bug, please create a ticket at:"
162+ )
159163 print (" https://northerntech.atlassian.net/" )
160164 print (
161165 " (Rerun with CFBACKTRACE=1 in front of your command to show the full backtrace)"
You can’t perform that action at this time.
0 commit comments