def make_msg(build, values, verbose=True, success=lambda x: x, failure=lambda x: x):
values = dict(values)
if not verbose and values['traceback'] is not None:
+ # TODO: better heuristic
values['traceback'] = textwrap.fill('\n'.join(values['traceback'].split('\n')[-2:]))
if build.succeeded: