diff --git a/lib/protobuf-decoder/protobufDecoder.js b/lib/protobuf-decoder/protobufDecoder.js index e8ad50e..f13a1e6 100644 --- a/lib/protobuf-decoder/protobufDecoder.js +++ b/lib/protobuf-decoder/protobufDecoder.js @@ -46,9 +46,9 @@ export class BufferReader { if (length > bytesAvailable) { throw new Error( "Not enough bytes left. Requested: " + - length + - " left: " + - bytesAvailable, + length + + " left: " + + bytesAvailable, ); } } @@ -107,7 +107,7 @@ export function decodeProto(buffer) { } } catch (err) { reader.resetToCheckpoint(); - console.log(err); + console.log(`ERR: ${err}`); } return { diff --git a/page/index.js b/page/index.js index 07fe98f..ba9b784 100644 --- a/page/index.js +++ b/page/index.js @@ -22,7 +22,7 @@ Page( this.initPage(); }) .catch((x) => { - console.log(`Init failed: ${x}`); + console.log(`ERR: Init failed - ${x}`); try { let localStorage = new LocalStorage(); app._options.globalData.TOTPS = JSON.parse( diff --git a/setting/index.js b/setting/index.js index cadbeb8..e0b5606 100644 --- a/setting/index.js +++ b/setting/index.js @@ -33,7 +33,7 @@ AppSettingsPage({ onChange: (changes) => { let link = getTOTPByLink(changes); if (link == null) { - console.log("link is invalid"); + console.log("ERR: link is invalid"); return; } @@ -144,7 +144,7 @@ function GetTOTPList(storage) { storage[elementId] = link; updateStorage(storage); } catch (err) { - console.log(err); + console.log(`ERR: ${err}`); } }, labelStyle: { diff --git a/setting/utils/queryParser.js b/setting/utils/queryParser.js index 1c7fc13..c738f4c 100644 --- a/setting/utils/queryParser.js +++ b/setting/utils/queryParser.js @@ -56,7 +56,7 @@ function getByOtpauthScheme(link) { getHashType(algorithm), ); } catch (err) { - console.log(err); + console.log(`ERR: ${err}`); return null; } }