diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2021-09-30 18:04:27 +0300 |
---|---|---|
committer | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2021-09-30 18:28:28 +0300 |
commit | 6123e97e318122e128b4c034f897e8a82840a067 (patch) | |
tree | d723c3e67df07e5b1780c49dd8c7aad1040d7713 /LICENSE.GPL | |
parent | 2d348980cbbb8a1d4f547c0cf5b09bd8d9208a0f (diff) | |
download | mpv-6123e97e318122e128b4c034f897e8a82840a067.tar.bz2 mpv-6123e97e318122e128b4c034f897e8a82840a067.tar.xz |
js: custom init (~~/.init.js): fail loudly on errors
Previously, loading ~~/.init.js was inside a try block, in order to
quietly ignore errors if the file doesn't exist.
However, that also prevented any real errors from showing up even when
the file does exist, and the script continued as if everything is OK,
while in fact the custom init script didn't complete correctly.
Now we first check if the file exists, and then load it without
try/catch, so that any error shows up normally (and abort the script).
Diffstat (limited to 'LICENSE.GPL')
0 files changed, 0 insertions, 0 deletions