Skip to content

Commit

Permalink
chore: improve error message on package.json parsing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
elbywan committed Jan 22, 2024
1 parent 79046e0 commit 2019e42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/package/package.cr
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ class Zap::Package
end
}
end
rescue
raise "package.json not found at #{full_path}"
rescue e
raise "Unable to read package.json at #{full_path}\n#{e}"
end

def self.init_root_package(path : Path, *, append_filename : Bool = true) : self
Expand Down

0 comments on commit 2019e42

Please sign in to comment.