refactor: errors changed to one standard

This commit is contained in:
Pavel-Savely Savianok 2025-07-24 17:32:53 +03:00
parent 78c5ab1a72
commit f32349717f
4 changed files with 8 additions and 8 deletions

View File

@ -107,7 +107,7 @@ export function decodeProto(buffer) {
}
} catch (err) {
reader.resetToCheckpoint();
console.log(err);
console.log(`ERR: ${err}`);
}
return {

View File

@ -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(

View File

@ -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: {

View File

@ -56,7 +56,7 @@ function getByOtpauthScheme(link) {
getHashType(algorithm),
);
} catch (err) {
console.log(err);
console.log(`ERR: ${err}`);
return null;
}
}