update error logging

This commit is contained in:
collin 2022-07-12 22:13:54 -07:00
parent d7efc2ddb6
commit 0bd0aed089
4 changed files with 9 additions and 9 deletions

View File

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

View File

@ -1,6 +1,5 @@
program helloworld.aleo;
function compute:
input r0 as u32.private;
input r1 as u32.private;

View File

@ -1,4 +1,5 @@
program message.aleo;
interface message:
first as field;
second as field;

View File

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