Tholp's bespoke website generator
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

convert stray `time` error msg to new system

Tholp1 29599d68 2da1e7fc

+9 -9
+9 -9
src/macros/simple_macros.rs
··· 4 4 use chrono::{DateTime, Local}; 5 5 6 6 use crate::{ 7 + console::error_skid, 7 8 projectparse::{FileIndexing, ProjectContext}, 8 9 stringtools::split_to_tokens, 9 10 types::{InputFile, Token}, ··· 33 34 let t = Local::now(); 34 35 35 36 if args.len() != 1 { 36 - let origin_file = context 37 - .file_for_index(origin_index) 38 - .expect("Macro 'Time' was given a bad origin index") 39 - .clone(); 40 - println!( 41 - "{:?}:{} ;Time only accepts 1 argument, got given {} ({:?})", 42 - origin_file.to_str(), 37 + error_skid( 38 + context, 39 + origin_index, 43 40 origin_line, 44 - args.len(), 45 - args 41 + format!( 42 + "Time only accepts 1 argument, got given {} ({:?})", 43 + args.len(), 44 + args 45 + ), 46 46 ); 47 47 exit(1); 48 48 }