]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #107808 - kadiwa4:built-unsuccessfully, r=albertlarsan68
authorMatthias Krüger <matthias.krueger@famsik.de>
Thu, 9 Feb 2023 10:21:58 +0000 (11:21 +0100)
committerGitHub <noreply@github.com>
Thu, 9 Feb 2023 10:21:58 +0000 (11:21 +0100)
bootstrap.py: fix build-failure message

A small mistake I did.
Corrects #107470, fixes #107804

r? `@albertlarsan68` (since you reviewed the last one)

src/bootstrap/bootstrap.py

index c298817895cd17c00cfdea87d99b01f5c4a4946e..45f238ef4bf1f7202d5cfbe7bc3fcea992e7d139 100644 (file)
@@ -937,6 +937,7 @@ def main():
         )
 
     exit_code = 0
+    success_word = "successfully"
     try:
         bootstrap(args)
     except (SystemExit, KeyboardInterrupt) as error:
@@ -945,9 +946,10 @@ def main():
         else:
             exit_code = 1
             print(error)
+        success_word = "unsuccessfully"
 
     if not help_triggered:
-        print("Build completed successfully in", format_build_time(time() - start_time))
+        print("Build completed", success_word, "in", format_build_time(time() - start_time))
     sys.exit(exit_code)