Skip to content

Commit

Permalink
error handling for tx sending of upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Jul 21, 2021
1 parent e42bfd1 commit 3deef55
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ol/txs/src/commands/oracle_upgrade_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@ impl Runnable for OracleUpgradeCmd {

let path = self.upgrade_file_path.clone().unwrap_or_else(|| {
let cfg = app_config();
cfg.workspace.stdlib_bin_path.clone().unwrap()

match cfg.workspace.stdlib_bin_path.clone() {
Some(p) => p,
None => {
println!("could not find path to compiled stdlib.mv, was this set in 0L.toml? Alternatively pass the full path with: -f <project_root>/language/stdlib/staged/stdlib.mv");
exit(1);
},
}
});

match maybe_submit(
Expand Down

0 comments on commit 3deef55

Please sign in to comment.