improve prints slightly

This commit is contained in:
dr-frmr 2024-03-06 12:54:40 -03:00
parent 66c971b5d8
commit 274ae268f2
No known key found for this signature in database
9 changed files with 10 additions and 10 deletions

View File

@ -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;
};

View File

@ -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;
};

View File

@ -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;
};

View File

@ -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;
};

View File

@ -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;
};

View File

@ -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();

View File

@ -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 {

View File

@ -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 {

View File

@ -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;
};