wadebug/wa_actions/common/common_results.py (20 lines of code) (raw):

# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from __future__ import absolute_import, division, print_function, unicode_literals from wadebug import results def missing_config(cls, missing_configs): return results.Skipped( cls, "This check is skipped", "Unable to read required config values:\n{}".format( "\n".join("\t" + config for config in missing_configs) ), "Please check these configurations are properly defined in wadebug.conf.yml", ) def wadebug_error(cls, exception, trace): return results.WADebugError( cls, "An unexpected error occurred with WADebug", exception, "Please report this by opening a new issue on Github at " "(https://github.com/WhatsApp/WADebug/issues)", traceback=trace, )