From: Daan De Meyer Date: Wed, 19 Apr 2023 13:47:10 +0000 (+0200) Subject: Show exception string when we fail X-Git-Tag: v15~230^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afb709356fed78a1b6994e72d651e92f354be333;p=thirdparty%2Fmkosi.git Show exception string when we fail To at least give a little information to users about what went wrong --- diff --git a/mkosi/__main__.py b/mkosi/__main__.py index 8ca7d53a8..abbff3e92 100644 --- a/mkosi/__main__.py +++ b/mkosi/__main__.py @@ -38,7 +38,7 @@ def propagate_failed_return() -> Iterator[None]: if ARG_DEBUG: raise e - MkosiPrinter.error("Error: mkosi failed because of an exception, rerun mkosi with --debug run to get more information") + MkosiPrinter.error(f"Error: {str(e)}, rerun mkosi with --debug run to get more information") sys.exit(1)