Use error log type
This commit is contained in:
6
third-party/mexui/Core/Native.js
vendored
6
third-party/mexui/Core/Native.js
vendored
@@ -6,7 +6,7 @@ mexui.native.loadImage = function(imageFilePath, imageName)
|
|||||||
var file = openFile(imageFilePath);
|
var file = openFile(imageFilePath);
|
||||||
if(!file)
|
if(!file)
|
||||||
{
|
{
|
||||||
logToConsole(LOG_DEBUG, 'ERROR [IMAGE LOAD] - Opening File: '+imageFilePath);
|
logToConsole(LOG_DEBUG|LOG_ERROR, 'ERROR [IMAGE LOAD] - Opening File: '+imageFilePath);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -19,14 +19,14 @@ mexui.native.loadImage = function(imageFilePath, imageName)
|
|||||||
image = drawing.loadBMP(file);
|
image = drawing.loadBMP(file);
|
||||||
else
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!image)
|
if(!image)
|
||||||
{
|
{
|
||||||
file.close();
|
file.close();
|
||||||
logToConsole(LOG_DEBUG, 'ERROR [IMAGE LOAD] - Reading File: '+imageFilePath);
|
logToConsole(LOG_DEBUG|LOG_ERROR, 'ERROR [IMAGE LOAD] - Reading File: '+imageFilePath);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user