just semantics but this should probably be `console.error(err);`