mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-16 17:22:44 +03:00
Show error instead of warning requester when essential library fails to open.
This commit is contained in:
parent
5776b39b8d
commit
91662977eb
@ -17,10 +17,12 @@
|
||||
*/
|
||||
|
||||
#include "amiga/libs.h"
|
||||
#include "amiga/misc.h"
|
||||
#include "utils/utils.h"
|
||||
#include "utils/log.h"
|
||||
|
||||
#include <proto/exec.h>
|
||||
#include <proto/utility.h>
|
||||
|
||||
#define AMINS_LIB_OPEN(LIB, LIBVER, PREFIX, INTERFACE, INTVER, FAIL) \
|
||||
LOG(("Opening %s v%d", LIB, LIBVER)); \
|
||||
@ -32,8 +34,10 @@
|
||||
} else { \
|
||||
LOG(("Failed to open %s v%d", LIB, LIBVER)); \
|
||||
if(FAIL == true) { \
|
||||
warn_user("CompError", LIB); \
|
||||
return false; \
|
||||
STRPTR error = ASPrintf("Unable to open %s v%d", LIB, LIBVER); \
|
||||
ami_misc_fatal_error(error); \
|
||||
FreeVec(error); \
|
||||
return false; \
|
||||
} \
|
||||
}
|
||||
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include <exec/types.h>
|
||||
|
||||
extern struct gui_file_table *amiga_file_table;
|
||||
struct Window;
|
||||
|
||||
char *translate_escape_chars(const char *s);
|
||||
void ami_misc_fatal_error(const char *message);
|
||||
|
Loading…
Reference in New Issue
Block a user