Skip to content

loadPlaylist , when file not exist, don not right to reject error #96

@noobakong

Description

@noobakong

Bug Description

if file not exist, not right to right reject

How To Reproduce

mpv.loadPlaylist use a not exist path

Software Versions
  • Node-Mpv: "node-mpv": "^2.0.0-beta.2",
  • MPV
    • mpv 0.33.0-302-g0c9e1e34fd Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
      built on Sun Aug 15 17:42:08 +08 2021
      FFmpeg library versions:
      libavutil 57.4.100
      libavcodec 59.4.101
      libavformat 59.4.101
      libswscale 6.0.100
      libavfilter 8.1.103
      libswresample 4.0.100
      FFmpeg version: git-2021-08-14-acd07984
  • OS: Windows10
Additional context

in my test code
fs.stat error with code not -2
but your code is -2 to judge
don not to right code
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions