Skip to content

Commit b7a9d8c

Browse files
authored
Silence 'No protocols registered for' error message (#3369)
* 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. * move up import
1 parent ee63afa commit b7a9d8c

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
@@ -1,5 +1,6 @@
11
import config from 'config';
22
import { parseTokenKey, Token, tokenKey } from 'config/tokens';
3+
import { maybeLogSdkError } from 'utils/errors';
34

45
import {
56
Chain,
@@ -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)