Skip to content

Commit 4eb04a7

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 349abb5 + 620c4e9 commit 4eb04a7

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

flake.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@
1414
pkgs = import nixpkgs {
1515
inherit system overlays;
1616
};
17+
cargoMeta = builtins.fromTOML (builtins.readFile ./Cargo.toml);
1718
in {
1819
packages.default = pkgs.rustPlatform.buildRustPackage {
19-
pname = "blutgang";
20-
version = "0.3.2";
20+
pname = cargoMeta.package.name;
21+
version = cargoMeta.package.version;
2122
src = ./.;
2223
cargoLock = {
2324
lockFile = ./Cargo.lock;

src/rpc/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl Rpc {
167167
Some(number) => number,
168168
None => {
169169
return Err(RpcError::InvalidResponse(
170-
"error: Invalid response".to_string(),
170+
"error: Can't get finalized block!".to_string(),
171171
))
172172
}
173173
};
@@ -205,7 +205,7 @@ fn extract_number(rx: &str) -> Result<u64, RpcError> {
205205
Some(number) => number,
206206
None => {
207207
return Err(RpcError::InvalidResponse(
208-
"error: Invalid response".to_string(),
208+
"error: Extracting response from request failed!".to_string(),
209209
))
210210
}
211211
};

0 commit comments

Comments
 (0)