diff --git a/app/Xnb/TypeReader.js b/app/Xnb/TypeReader.js index 63f8a5a..3fc8289 100644 --- a/app/Xnb/TypeReader.js +++ b/app/Xnb/TypeReader.js @@ -14,6 +14,8 @@ const simplifyType = type => { // gets the first part of the type let simple = type.split(/`|,/)[0]; + Log.debug(`Type: ${simple}`); + // check if its an array or not let isArray = simple.endsWith('[]'); // if its an array then get the array type diff --git a/app/Xnb/index.js b/app/Xnb/index.js index f6ab53d..6bdf079 100644 --- a/app/Xnb/index.js +++ b/app/Xnb/index.js @@ -137,7 +137,7 @@ class Xnb { const version = this.buffer.readInt32(); // get the reader for this type - const simpleType = simplifyType(type); + const simpleType = simplifyType(type); const reader = getReader(simpleType); // add reader to the list diff --git a/xnbcli.js b/xnbcli.js index feaaed5..60d9395 100644 --- a/xnbcli.js +++ b/xnbcli.js @@ -36,7 +36,7 @@ const VERSION = '1.0.4'; } catch (error) { Log.error('Failed to search for a new update. Application should still function normally.'); - Log.error(error.response.body); + Log.error(error); } // call the init function to get the party started