refactor: errors changed to one standard

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

View File

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