mirror of
https://github.com/AleoHQ/leo.git
synced 2024-11-24 02:42:21 +03:00
update error logging
This commit is contained in:
parent
d7efc2ddb6
commit
0bd0aed089
@ -411,49 +411,49 @@ create_messages!(
|
||||
@backtraced
|
||||
failed_to_load_instructions {
|
||||
args: (error: impl Display),
|
||||
msg: format!("Failed to load compiled Aleo instructions into an Aleo file:\n{}", error),
|
||||
msg: format!("Failed to load compiled Aleo instructions into an Aleo file.\nSnarkVM Error: {}", error),
|
||||
help: Some("Generated Aleo instructions have been left in `main.aleo`".to_string()),
|
||||
}
|
||||
|
||||
@backtraced
|
||||
failed_to_write_to_aleo_file {
|
||||
args: (path: impl Display, error: impl Display),
|
||||
msg: format!("Failed to write to the Aleo file at `{}`. Error: {}", path, error),
|
||||
msg: format!("Failed to write to the Aleo file at `{}`.\nSnarkVM Error: {}", path, error),
|
||||
help: None,
|
||||
}
|
||||
|
||||
@backtraced
|
||||
failed_to_execute_aleo_build {
|
||||
args: (error: impl Display),
|
||||
msg: format!("Failed to execute the `aleo build` command. Error: {}", error),
|
||||
msg: format!("Failed to execute the `aleo build` command.\nSnarkVM Error: {}", error),
|
||||
help: None,
|
||||
}
|
||||
|
||||
@backtraced
|
||||
failed_to_execute_aleo_new {
|
||||
args: (error: impl Display),
|
||||
msg: format!("Failed to execute the `aleo new` command. Error: {}", error),
|
||||
msg: format!("Failed to execute the `aleo new` command.\nSnarkVM Error: {}", error),
|
||||
help: None,
|
||||
}
|
||||
|
||||
@backtraced
|
||||
failed_to_execute_aleo_run {
|
||||
args: (error: impl Display),
|
||||
msg: format!("Failed to execute the `aleo run` command. Error: {}", error),
|
||||
msg: format!("Failed to execute the `aleo run` command.\nSnarkVM Error: {}", error),
|
||||
help: None,
|
||||
}
|
||||
|
||||
@backtraced
|
||||
failed_to_parse_aleo_new {
|
||||
args: (error: impl Display),
|
||||
msg: format!("Failed to parse the `aleo new` command. Error: {}", error),
|
||||
msg: format!("Failed to parse the `aleo new` command.\nSnarkVM Error: {}", error),
|
||||
help: None,
|
||||
}
|
||||
|
||||
@backtraced
|
||||
failed_to_parse_aleo_run {
|
||||
args: (error: impl Display),
|
||||
msg: format!("Failed to parse the `aleo run` command. Error: {}", error),
|
||||
msg: format!("Failed to parse the `aleo run` command.\nSnarkVM Error: {}", error),
|
||||
help: None,
|
||||
}
|
||||
);
|
||||
|
@ -1,6 +1,5 @@
|
||||
program helloworld.aleo;
|
||||
|
||||
|
||||
function compute:
|
||||
input r0 as u32.private;
|
||||
input r1 as u32.private;
|
||||
|
@ -1,4 +1,5 @@
|
||||
program message.aleo;
|
||||
|
||||
interface message:
|
||||
first as field;
|
||||
second as field;
|
||||
|
@ -7,4 +7,4 @@ record token:
|
||||
function main:
|
||||
input r0 as token.record;
|
||||
add r0.token_amount r0.token_amount into r1;
|
||||
output r1 as u64.private;
|
||||
output r1 as field.private;
|
||||
|
Loading…
Reference in New Issue
Block a user