Skip to content

Commit 08e2f58

Browse files
committed
fix: http method error handling
1 parent 80a942f commit 08e2f58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unicorn_contracts/src/contracts_service/contractEventHandler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ class ContractEventHandlerFunction implements LambdaInterface {
7171
}
7272
break;
7373
default:
74-
tracer.addErrorAsMetadata(Error('Request not supported'));
75-
logger.error('Error request not supported');
74+
tracer.addErrorAsMetadata(Error(`Unsupported HTTP method: ${httpMethod}`));
75+
logger.error(`Unsupported HTTP method: ${httpMethod}`);
7676
}
7777
}
7878
}

0 commit comments

Comments
 (0)