Throws detailed error information (#6116)

* Throws detailed error information

* Apply suggestions
This commit is contained in:
zjb0807
2025-05-05 11:15:52 -03:00
committed by GitHub
parent 2b269d25b8
commit cb871a544d
+1
View File
@@ -200,6 +200,7 @@ export abstract class Init<ApiType extends ApiTypes> extends Decorate<ApiType> {
);
if (header.parentHash.isEmpty) {
l.warn(`Unable to retrieve header ${blockHash.toString()} and parent ${header.parentHash.toString()} from supplied hash`);
throw new Error('Unable to retrieve header and parent from supplied hash');
}