Skip to content

Daemon crashes on bad Hyperdrive.mount arguments with HyperdriveClient API, giving zero output.log information #78

@metanomial

Description

@metanomial

Describe the bug
Daemon crashes when Hyperdrive.mount from the HyperdriveClient API is called with bad arguments. Nothing is stored in ~/.hyperdrive/output.log.

To Reproduce

const { HyperdriveClient } = require("hyperdrive-daemon-client");
const client = new HyperdriveClient;
void async function() {
    await client.ready();
    const drive = await client.drive.get();
    await drive.mount("foo", "bar");
    // Daemon is now crashed
}();

Expected Behavior

  1. The Daemon should handle the bad input gracefully.
  2. The Daemon should always output to file on error.

OS
Windows 10

Node version
14.3.0

Was the daemon installed from NPM or bundled with Beaker?
NPM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions