Skip to content

Commit 8d0afd4

Browse files
committed
Add status to grant failure message
1 parent f7c0694 commit 8d0afd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/autostake/NetworkRunner.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default class NetworkRunner {
109109
if(error.response?.status === 501){
110110
return false
111111
}else{
112-
throw new Error('Failed to load grants')
112+
throw new Error(`Failed to load grants: ${error.response?.status}`)
113113
}
114114
}
115115
if (addresses){
@@ -241,7 +241,7 @@ export default class NetworkRunner {
241241
this.logger.info('Reward is too low, skipping', {
242242
address,
243243
amount: autostakeAmount,
244-
denom: this.network.denom,
244+
denom: this.network.denom,
245245
})
246246
return
247247
}

0 commit comments

Comments
 (0)