Handles a raised BuildInterruptingException by printing its error message and associated instructions, if any, then exiting.
(exception)
| 107 | |
| 108 | |
| 109 | def handle_build_exception(exception): |
| 110 | """ |
| 111 | Handles a raised BuildInterruptingException by printing its error |
| 112 | message and associated instructions, if any, then exiting. |
| 113 | """ |
| 114 | error('Build failed: {}'.format(exception.message)) |
| 115 | if exception.instructions is not None: |
| 116 | info('Instructions: {}'.format(exception.instructions)) |
| 117 | exit(1) |
| 118 | |
| 119 | |
| 120 | def rmdir(dn, ignore_errors=False): |