diff --git a/src/main.rs b/src/main.rs index 6e2e160..348306c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -296,9 +296,14 @@ fn get_metadata(messages: &[Message]) -> CTRConfig { _ => artifact.target.name, }; + let author = match package.authors.as_slice() { + [name, ..] => name.to_owned(), + [] => String::from("Unspecified Author"), // as standard with the devkitPRO toolchain + }; + CTRConfig { name, - author: package.authors[0].clone(), + author, description: package .description .clone()