cruise-automation / rosbag.js

ROS bag file reader for JavaScript 👜

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error reports missing file header when file is non existent

gkjohnson opened this issue · comments

When opening a file that doesn't exist the error is reported as "Missing file header":

(node:69920) UnhandledPromiseRejectionWarning: Error: Missing file header.

rather than nonexistent file. Here's some repro code:

const { open } = require('rosbag');
open('../non/existent.bag')