From f079aae6fa9a6bc7a1350600f72a8638e7e56aa8 Mon Sep 17 00:00:00 2001 From: Sabine Date: Tue, 8 Oct 2024 18:56:03 +0200 Subject: [PATCH] feat (mac): new message if SaveKeyboard fails --- mac/mcompile/mcompile.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mac/mcompile/mcompile.cpp b/mac/mcompile/mcompile.cpp index 1d4591ead09..fedd3a3a810 100644 --- a/mac/mcompile/mcompile.cpp +++ b/mac/mcompile/mcompile.cpp @@ -91,7 +91,10 @@ int main(int argc, char* argv[]) { } if (mac_KMX_DoConvert(kmxfile, bDeadkeyConversion)) { // I4552F - KMX_SaveKeyboard(kmxfile, outfile); + if(!KMX_SaveKeyboard(kmxfile, outfile)) { + mac_KMX_LogError(L"Failed to save keyboard (%d)\n", errno); + return 3; + } } else { mac_KMX_LogError(L"Failed to convert keyboard (%d)\n", errno); return 3;