Skip to content

Commit 3f87dc8

Browse files
authored
Merge pull request #1344 from IntersectMBO/jordan/friendly-future-pparams-null-message
Print friendly stderr message when future-pparams returns null
2 parents 776a3ec + 7af9ecd commit 3f87dc8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • cardano-cli/src/Cardano/CLI/EraBased/Query

cardano-cli/src/Cardano/CLI/EraBased/Query/Run.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,6 +1671,10 @@ runQueryFuturePParams
16711671
} = conwayEraOnwardsConstraints eon $ do
16721672
futurePParams <- fromExceptTCli $ runQuery nodeConnInfo target $ queryFuturePParams eon
16731673

1674+
when (isNothing futurePParams) $
1675+
liftIO . T.hPutStrLn IO.stderr $
1676+
"No protocol parameter changes will be enacted at the next epoch boundary."
1677+
16741678
let output =
16751679
outputFormat
16761680
& ( id

0 commit comments

Comments
 (0)