Error reports missing file header when file is non existent
gkjohnson opened this issue · comments
Garrett Johnson commented
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')