summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-11-29 06:25:04 +0000
committerPo Lu <luangruo@yahoo.com>2022-11-29 06:26:16 +0000
commitafc7ed987b1c76f6c1f7324fa8eb7692aa8373d3 (patch)
treefb4986f3e092c433ef653f492807dec650a3ed5b /lib-src
parent00de296d1b4f629fd828cdeff588bb4f742d9ffe (diff)
downloademacs-afc7ed987b1c76f6c1f7324fa8eb7692aa8373d3.tar.gz
Allow be-resources to fail
* lib-src/be_resources.cc (be_perror): Print additional blurb. (main): Return 0 on failure as well, but print the blurb. Problem reported by the Haiku packager.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/be_resources.cc14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib-src/be_resources.cc b/lib-src/be_resources.cc
index 414f91a192d..ece573a85a6 100644
--- a/lib-src/be_resources.cc
+++ b/lib-src/be_resources.cc
@@ -71,9 +71,11 @@ be_perror (status_t code, char *arg)
}
}
else
- {
- abort ();
- }
+ abort ();
+
+ fprintf (stderr, "Setting resources failed on the `src/Emacs' binary.\n"
+ "This may result in the installed `Emacs' binary not launching\n"
+ " from the tracker, but is inconsequential during packaging.\n");
}
int
@@ -111,19 +113,19 @@ main (int argc, char **argv)
if (code != B_OK)
{
be_perror (code, argv[2]);
- return EXIT_FAILURE;
+ return 0;
}
code = info.SetTo (&file);
if (code != B_OK)
{
be_perror (code, argv[2]);
- return EXIT_FAILURE;
+ return 0;
}
code = info.SetAppFlags (B_EXCLUSIVE_LAUNCH | B_ARGV_ONLY);
if (code != B_OK)
{
be_perror (code, argv[2]);
- return EXIT_FAILURE;
+ return 0;
}
icon = BTranslationUtils::GetBitmapFile (argv[1], NULL);