Skip to content

Commit 5d657bf

Browse files
committed
Silence 'No protocols registered for' error message
This is not a "real" error. It just means the chain doesn't support the protocol. Prevent this error from being logged to the console.
1 parent 621adee commit 5d657bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

wormhole-connect/src/routes/operator.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import {
2020
import '@wormhole-foundation/sdk-definitions-ntt';
2121
import '@wormhole-foundation/sdk-evm-ntt';
2222
import '@wormhole-foundation/sdk-solana-ntt';
23+
import { maybeLogSdkError } from 'utils/errors';
2324

2425
export interface TxInfo {
2526
route: string;
@@ -180,7 +181,7 @@ export default class RouteOperator {
180181
}
181182
}
182183
} catch (e) {
183-
console.error(e);
184+
maybeLogSdkError(e);
184185
}
185186
});
186187

0 commit comments

Comments
 (0)