Skip to content

Commit b4f51fb

Browse files
committed
Open of unknown wallet should return proper error
Signed-off-by: Darko Kulic <[email protected]>
1 parent 1b0383e commit b4f51fb

File tree

1 file changed

+1
-1
lines changed
  • libindy/src/services/wallet

1 file changed

+1
-1
lines changed

libindy/src/services/wallet/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ impl WalletService {
269269
if !wallet_descriptor_path.exists() {
270270
return Err(WalletError::NotFound("Wallet descriptor path does not exist.".to_string()));
271271
}
272-
let mut file = File::open(_wallet_descriptor_path(name))?;
272+
let mut file = File::open(wallet_descriptor_path)?;
273273
file.read_to_string(&mut descriptor_json)?;
274274
descriptor_json.as_str()
275275
})?;

0 commit comments

Comments
 (0)