File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
batcher/aligned-batcher/src Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1018,7 +1018,7 @@ impl Batcher {
10181018 & file_name,
10191019 )
10201020 . await
1021- . map_err ( |e| BatcherError :: TaskCreationError ( e. to_string ( ) ) ) ?;
1021+ . map_err ( |e| BatcherError :: BatchUploadError ( e. to_string ( ) ) ) ?;
10221022
10231023 info ! ( "Batch sent to S3 with name: {}" , file_name) ;
10241024
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ pub enum BatcherError {
99 BatchVerifiedEventStreamError ( String ) ,
1010 EthereumSubscriptionError ( String ) ,
1111 SignatureError ( SignatureError ) ,
12+ BatchUploadError ( String ) ,
1213 TaskCreationError ( String ) ,
1314 ReceiptNotFoundError ,
1415 TransactionSendError ,
@@ -49,6 +50,9 @@ impl fmt::Debug for BatcherError {
4950 BatcherError :: SignatureError ( e) => {
5051 write ! ( f, "Message signature verification error: {}" , e)
5152 }
53+ BatcherError :: BatchUploadError ( e) => {
54+ write ! ( f, "Uploading Batch was not successful: {}" , e)
55+ }
5256 BatcherError :: TaskCreationError ( e) => {
5357 write ! ( f, "Task creation error: {}" , e)
5458 }
You can’t perform that action at this time.
0 commit comments