mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-01 08:18:45 +09:00
Fix typos (#11450)
This commit is contained in:
parent
8a6791da3f
commit
79966d33b5
@ -332,7 +332,7 @@ export class DriveService {
|
||||
this.registerLogger.debug('web image not created (not an required image)');
|
||||
}
|
||||
} catch (err) {
|
||||
this.registerLogger.warn('web image not created (an error occured)', err as Error);
|
||||
this.registerLogger.warn('web image not created (an error occurred)', err as Error);
|
||||
}
|
||||
} else {
|
||||
if (satisfyWebpublic) this.registerLogger.info('web image not created (original satisfies webpublic)');
|
||||
@ -351,7 +351,7 @@ export class DriveService {
|
||||
thumbnail = await this.imageProcessingService.convertSharpToWebp(img, 498, 422);
|
||||
}
|
||||
} catch (err) {
|
||||
this.registerLogger.warn('thumbnail not created (an error occured)', err as Error);
|
||||
this.registerLogger.warn('thumbnail not created (an error occurred)', err as Error);
|
||||
}
|
||||
// #endregion thumbnail
|
||||
|
||||
|
@ -286,7 +286,7 @@ export class ApPersonService implements OnModuleInit {
|
||||
const emojis = await this.apNoteService.extractEmojis(person.tag ?? [], host)
|
||||
.then(_emojis => _emojis.map(emoji => emoji.name))
|
||||
.catch(err => {
|
||||
this.logger.error('error occured while fetching user emojis', { stack: err });
|
||||
this.logger.error('error occurred while fetching user emojis', { stack: err });
|
||||
return [];
|
||||
});
|
||||
//#endregion
|
||||
@ -380,7 +380,7 @@ export class ApPersonService implements OnModuleInit {
|
||||
// Register to the cache
|
||||
this.cacheService.uriPersonCache.set(user.uri, user);
|
||||
} catch (err) {
|
||||
this.logger.error('error occured while fetching user avatar/banner', { stack: err });
|
||||
this.logger.error('error occurred while fetching user avatar/banner', { stack: err });
|
||||
}
|
||||
//#endregion
|
||||
|
||||
|
@ -682,7 +682,7 @@ export class ClientServerService {
|
||||
|
||||
fastify.setErrorHandler(async (error, request, reply) => {
|
||||
const errId = randomUUID();
|
||||
this.clientLoggerService.logger.error(`Internal error occured in ${request.routerPath}: ${error.message}`, {
|
||||
this.clientLoggerService.logger.error(`Internal error occurred in ${request.routerPath}: ${error.message}`, {
|
||||
path: request.routerPath,
|
||||
params: request.params,
|
||||
query: request.query,
|
||||
|
Loading…
Reference in New Issue
Block a user