Add error context to output for JsonModelPlugin

This commit is contained in:
Lucien Greathouse
2018-01-09 11:31:48 -08:00
parent c08a598d3f
commit 27cf2c8740

View File

@@ -29,8 +29,8 @@ impl Plugin for JsonModelPlugin {
let mut rbx_item: RbxInstance = match serde_json::from_str(contents) {
Ok(v) => v,
Err(_) => {
eprintln!("Unable to parse JSON Model File named {}", vfs_item.name());
Err(e) => {
eprintln!("Unable to parse JSON Model File named {}: {}", vfs_item.name(), e);
return TransformFileResult::Pass; // This should be an error in the future!
},