update errors handler

This commit is contained in:
smanylov
2026-02-04 13:21:32 +07:00
parent 362df2f609
commit 584f0dda2f
9 changed files with 140 additions and 20 deletions
+4
View File
@@ -1,4 +1,8 @@
export function convertBytes(bytes: number) {
if (!bytes) {
return 0;
}
const units = ['B', 'KB', 'MB', 'GB', 'TB'];
if (bytes === 0) return '0 B';