···20 _scope: &[Token],
21) -> Vec<Token> {
22 let origin_file = context
23- .file_for_index(origin_index)
24 .expect("Macro 'Insert' was given a bad origin index")
25 .clone();
26 if args.len() != 1 {
···67 }
6869 if !ok {
70- println!("[ERROR] \"{:?}\": Insert was unable to find the file \"{}\" relative to its origin or in project root.", origin_file.to_str(), arg);
71 exit(1);
72 }
73
···20 _scope: &[Token],
21) -> Vec<Token> {
22 let origin_file = context
23+ .file_for_index_cannonical(origin_index)
24 .expect("Macro 'Insert' was given a bad origin index")
25 .clone();
26 if args.len() != 1 {
···67 }
6869 if !ok {
70+ println!("[ERROR] {:?}: Insert was unable to find the file \"{}\" relative to its origin or in project root.", origin_file.to_str().unwrap(), arg);
71 exit(1);
72 }
73
···249 if !matched_macro {
250 println!(
251 "[WARN] {:?}:{}; Token written as a function but no such function exists \"{}\"",
252- file.file_input,
253 file.tokens[file.working_index].line_number,
254 file.tokens[file.working_index].contents.trim()
255 );
···249 if !matched_macro {
250 println!(
251 "[WARN] {:?}:{}; Token written as a function but no such function exists \"{}\"",
252+ context.file_for_index(file.tokens[file.working_index].origin_file).unwrap(),
253 file.tokens[file.working_index].line_number,
254 file.tokens[file.working_index].contents.trim()
255 );