Skip to content

Commit cb871a5

Browse files
authored
Throws detailed error information (#6116)
* Throws detailed error information * Apply suggestions
1 parent 2b269d2 commit cb871a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/api/src/base/Init.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
200200
);
201201

202202
if (header.parentHash.isEmpty) {
203+
l.warn(`Unable to retrieve header ${blockHash.toString()} and parent ${header.parentHash.toString()} from supplied hash`);
203204
throw new Error('Unable to retrieve header and parent from supplied hash');
204205
}
205206

0 commit comments

Comments
 (0)