mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 03:30:42 +00:00
add log
This commit is contained in:
@@ -196,7 +196,11 @@ export async function uploadFile(
|
||||
body.append('name', filename);
|
||||
|
||||
return await fetch(`https://${host}/api/drive/files/create`, { method: 'POST', body })
|
||||
.then(async res => await res.json());
|
||||
.then(async res => await res.json())
|
||||
.catch(err => {
|
||||
console.error('-- error :', JSON.stringify(err));
|
||||
throw err;
|
||||
});
|
||||
}
|
||||
|
||||
export async function addCustomEmoji(
|
||||
|
||||
@@ -122,7 +122,10 @@ export class APIClient {
|
||||
...body.error,
|
||||
});
|
||||
}
|
||||
}).catch(reject);
|
||||
}).catch(err => {
|
||||
console.error('-- error :', JSON.stringify(err));
|
||||
reject(err);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user