From 82888b7928ad6a82f7db2aa998854d172c36050b Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sun, 15 May 2022 04:22:16 -0500 Subject: [PATCH] Use error log type --- third-party/mexui/Core/Native.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/third-party/mexui/Core/Native.js b/third-party/mexui/Core/Native.js index 4b226115..52541d3f 100644 --- a/third-party/mexui/Core/Native.js +++ b/third-party/mexui/Core/Native.js @@ -6,7 +6,7 @@ mexui.native.loadImage = function(imageFilePath, imageName) var file = openFile(imageFilePath); if(!file) { - logToConsole(LOG_DEBUG, 'ERROR [IMAGE LOAD] - Opening File: '+imageFilePath); + logToConsole(LOG_DEBUG|LOG_ERROR, 'ERROR [IMAGE LOAD] - Opening File: '+imageFilePath); return false; } @@ -19,14 +19,14 @@ mexui.native.loadImage = function(imageFilePath, imageName) image = drawing.loadBMP(file); else { - logToConsole(LOG_DEBUG, 'ERROR [IMAGE LOAD] - Unsupported image file path extension. Currently only supports PNG or BMP.'); + logToConsole(LOG_DEBUG|LOG_ERROR, 'ERROR [IMAGE LOAD] - Unsupported image file path extension. Currently only supports PNG or BMP.'); return false; } if(!image) { file.close(); - logToConsole(LOG_DEBUG, 'ERROR [IMAGE LOAD] - Reading File: '+imageFilePath); + logToConsole(LOG_DEBUG|LOG_ERROR, 'ERROR [IMAGE LOAD] - Reading File: '+imageFilePath); return false; }