Skip to content

Commit

Permalink
Merge branch 'feature-backend-error-handling-strategy' of https://git…
Browse files Browse the repository at this point in the history
…hub.com/Sma1lboy/codefox into feature-backend-error-handling-strategy
  • Loading branch information
NarwhalChen committed Jan 13, 2025
2 parents 2daed38 + 5ed11e7 commit 3296a80
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import {
formatResponse,
parseGenerateTag,
} from 'src/build-system/utils/strings';
import { NonRetryableError, RetryableError } from 'src/build-system/retry-handler';
import {
NonRetryableError,
RetryableError,
} from 'src/build-system/retry-handler';

export class FileArchGenerateHandler implements BuildHandler<string> {
readonly id = 'op:FILE:ARCH';
Expand Down Expand Up @@ -70,7 +73,9 @@ export class FileArchGenerateHandler implements BuildHandler<string> {
this.logger.error('Non-retryable error encountered:', error);
return {
success: false,
error: new NonRetryableError('Unexpected error during JSON processing'),
error: new NonRetryableError(
'Unexpected error during JSON processing',
),
};
}
}
Expand Down
1 change: 0 additions & 1 deletion backend/src/build-system/retry-handler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Logger } from '@nestjs/common';


export class RetryableError extends Error {
constructor(message: string) {
super(message);
Expand Down

0 comments on commit 3296a80

Please sign in to comment.