@@ -11,6 +11,7 @@ def main():
11
11
import math
12
12
import sys
13
13
import subprocess
14
+ import traceback
14
15
from deps .chars import specialChars , commonTopBorder , commonBottomBorder , commonEmptyLine , padText
15
16
from deps .consts import servicesDirectory , templatesDirectory , volumesDirectory , buildCache , envFile , dockerPathOutput , servicesFileName , composeOverrideFile
16
17
from deps .yaml_merge import mergeYaml
@@ -85,7 +86,7 @@ def buildServices(): # TODO: Move this into a dependency so that it can be execu
85
86
return True
86
87
except Exception as err :
87
88
print ("Issue running build:" )
88
- print ( err )
89
+ traceback . print_exc ( )
89
90
input ("Press Enter to continue..." )
90
91
return False
91
92
@@ -311,7 +312,7 @@ def mainRender(menu, selection, renderType = 1):
311
312
312
313
except Exception as err :
313
314
print ("There was an error rendering the menu:" )
314
- print ( err )
315
+ traceback . print_exc ( )
315
316
print ("Press [Esc] to go back" )
316
317
return
317
318
@@ -398,13 +399,13 @@ def checkForIssues():
398
399
menu [getMenuItemIndexByService (checkedMenuItem )][1 ]["issues" ] = []
399
400
except Exception as err :
400
401
print ("Error running checkForIssues on '%s'" % checkedMenuItem )
401
- print ( err )
402
+ traceback . print_exc ( )
402
403
input ("Press Enter to continue..." )
403
404
else :
404
405
menu [getMenuItemIndexByService (checkedMenuItem )][1 ]["issues" ] = []
405
406
except Exception as err :
406
407
print ("Error running checkForIssues on '%s'" % checkedMenuItem )
407
- print ( err )
408
+ traceback . print_exc ( )
408
409
input ("Press any key to exit..." )
409
410
sys .exit (1 )
410
411
@@ -430,7 +431,7 @@ def checkForOptions():
430
431
menu [getMenuItemIndexByService (menuItem [0 ])][1 ]["buildHooks" ]["options" ] = True
431
432
except Exception as err :
432
433
print ("Error running checkForOptions on '%s'" % menuItem [0 ])
433
- print ( err )
434
+ traceback . print_exc ( )
434
435
input ("Press any key to exit..." )
435
436
sys .exit (1 )
436
437
@@ -459,7 +460,7 @@ def runPrebuildHook():
459
460
exec (code , execGlobals , execLocals )
460
461
except Exception as err :
461
462
print ("Error running PreBuildHook on '%s'" % checkedMenuItem )
462
- print ( err )
463
+ traceback . print_exc ( )
463
464
input ("Press Enter to continue..." )
464
465
try : # If the prebuild hook modified the docker-compose object, pull it from the script back to here.
465
466
dockerComposeServicesYaml = execGlobals ["dockerComposeServicesYaml" ]
@@ -490,7 +491,7 @@ def runPostBuildHook():
490
491
exec (code , execGlobals , execLocals )
491
492
except Exception as err :
492
493
print ("Error running PostBuildHook on '%s'" % checkedMenuItem )
493
- print ( err )
494
+ traceback . print_exc ( )
494
495
input ("Press Enter to continue..." )
495
496
496
497
def executeServiceOptions ():
0 commit comments