Skip to content

Commit

Permalink
log path while file is missing; bump 0.3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed May 5, 2021
1 parent ddcc070 commit 7192b38
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "calcit_runner"
version = "0.3.8"
version = "0.3.9"
authors = ["jiyinyiyong <jiyinyiyong@gmail.com>"]
edition = "2018"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@calcit/procs",
"version": "0.3.8",
"version": "0.3.9",
"main": "./lib/calcit.procs.js",
"devDependencies": {
"@types/node": "^15.0.1",
Expand Down
3 changes: 2 additions & 1 deletion src/cirru/calcit-core.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,8 @@
if (map? x) (&{})
if (set? x) (#{})
if (string? x) |
raise $ &str-concat "|empty does not work on this type: " (&str x)
if (nil? x) nil
raise $ &str-concat "|empty does not work on this type: " (&str x)

|pairs-map $ quote
defn pairs-map (xs)
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fn main() -> Result<(), String> {
} else {
// load entry file
let entry_path = Path::new(cli_matches.value_of("input").unwrap());
let content = fs::read_to_string(entry_path).expect("expected a Cirru snapshot");
let content = fs::read_to_string(entry_path).expect(&format!("expected Cirru snapshot: {:?}", entry_path));
let data = cirru_edn::parse(&content)?;
// println!("reading: {}", content);
snapshot = snapshot::load_snapshot_data(data)?;
Expand Down Expand Up @@ -326,7 +326,7 @@ fn load_module(path: &str, base_dir: &Path) -> Result<snapshot::Snapshot, String

println!("loading module: {}", fullpath);

let content = fs::read_to_string(&fullpath).expect("expected a Cirru snapshot");
let content = fs::read_to_string(&fullpath).expect(&format!("expected Cirru snapshot {:?}", fullpath));
let data = cirru_edn::parse(&content)?;
// println!("reading: {}", content);
let snapshot = snapshot::load_snapshot_data(data)?;
Expand Down

0 comments on commit 7192b38

Please sign in to comment.