Skip to content

Commit

Permalink
Fixed error when offline
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonBlade committed Jun 22, 2019
1 parent 2d11564 commit 40ba75a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/Xnb/TypeReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/Xnb/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion xnbcli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 40ba75a

Please sign in to comment.