Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1082

mongorestore gives verbose error when dump directory doesn't exist

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 3.2.3
    • Fix Version/s: 3.2.8, 3.3.11
    • Component/s: None
    • Labels:
      None
    • Backport Requested:
      v3.2

      Description

      When I run mongorestore with a directory that doesn't exist, I get an error that surfaces way more than I need to know.

      mongorestore -d test
      2016-02-23T11:08:36.978-0500	using default 'dump' directory
      2016-02-23T11:08:36.978-0500	Failed: can't create ActualPath object from path dump: stat dump: no such file or directory
      

      Ideally we would just say "no such file or directory" plus some helpful direction on what might be wrong. The ActualPath exposes implementation details that nobody needs to debug this kind of error.

        Attachments

          Activity

            People

            Assignee:
            lucas.morales Lucas Morales
            Reporter:
            kyle.erf Kyle Erf
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: