mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-12-23 08:32:23 +03:00
improve prints slightly
This commit is contained in:
parent
66c971b5d8
commit
274ae268f2
@ -12,7 +12,7 @@ call_init!(init);
|
||||
|
||||
fn init(_our: Address) {
|
||||
let Ok(args) = await_next_request_body() else {
|
||||
println!("get_block: failed to get args, aborting");
|
||||
println!("failed to get args");
|
||||
return;
|
||||
};
|
||||
|
||||
|
@ -23,7 +23,7 @@ call_init!(init);
|
||||
|
||||
fn init(_our: Address) {
|
||||
let Ok(args) = await_next_request_body() else {
|
||||
println!("failed to get args, aborting");
|
||||
println!("failed to get args");
|
||||
return;
|
||||
};
|
||||
|
||||
|
@ -14,12 +14,12 @@ call_init!(init);
|
||||
|
||||
fn init(_our: Address) {
|
||||
let Ok(args) = await_next_request_body() else {
|
||||
println!("failed to get args, aborting");
|
||||
println!("failed to get args");
|
||||
return;
|
||||
};
|
||||
|
||||
let Ok(file_path) = String::from_utf8(args) else {
|
||||
println!("bad args, aborting");
|
||||
println!("argument must be a single string");
|
||||
return;
|
||||
};
|
||||
|
||||
|
@ -12,7 +12,7 @@ call_init!(init);
|
||||
|
||||
fn init(_our: Address) {
|
||||
let Ok(args) = await_next_request_body() else {
|
||||
println!("failed to get args, aborting");
|
||||
println!("failed to get args");
|
||||
return;
|
||||
};
|
||||
|
||||
|
@ -14,7 +14,7 @@ call_init!(init);
|
||||
|
||||
fn init(our: Address) {
|
||||
let Ok(args) = await_next_request_body() else {
|
||||
println!("failed to get args, aborting");
|
||||
println!("failed to get args");
|
||||
return;
|
||||
};
|
||||
|
||||
|
@ -16,7 +16,7 @@ call_init!(init);
|
||||
|
||||
fn init(_our: Address) {
|
||||
let Ok(body) = await_next_request_body() else {
|
||||
println!("failed to get args, aborting");
|
||||
println!("failed to get args");
|
||||
return;
|
||||
};
|
||||
let body_string = String::from_utf8(body).unwrap();
|
||||
|
@ -55,7 +55,7 @@ call_init!(init);
|
||||
|
||||
fn init(_our: Address) {
|
||||
let Ok(args) = await_next_request_body() else {
|
||||
println!("failed to get args, aborting");
|
||||
println!("failed to get args");
|
||||
return;
|
||||
};
|
||||
let Ok(namehash) = String::from_utf8(args) else {
|
||||
|
@ -55,7 +55,7 @@ call_init!(init);
|
||||
|
||||
fn init(_our: Address) {
|
||||
let Ok(args) = await_next_request_body() else {
|
||||
println!("failed to get args, aborting");
|
||||
println!("failed to get args");
|
||||
return;
|
||||
};
|
||||
let Ok(name) = String::from_utf8(args) else {
|
||||
|
@ -15,7 +15,7 @@ call_init!(init);
|
||||
|
||||
fn init(_our: Address) {
|
||||
let Ok(args) = await_next_request_body() else {
|
||||
println!("failed to get args, aborting");
|
||||
println!("failed to get args");
|
||||
return;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user