Skip to content

Commit

Permalink
Fix unhandled exception when trying to use WSL
Browse files Browse the repository at this point in the history
This isn't proper support; it's just error handling. Not sure how
to correctly support Windows Subsystem for Linux at this stage.
  • Loading branch information
Phidica committed Oct 26, 2019
1 parent 073747a commit c597743
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tools/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,9 @@ def getFishOutput(args, settings, pipeInput = None):
msg += " Specify a nonstandard install location in Preferences > " \
"Package Settings > Fish > Settings."
sublime.error_message(msg)
except OSError as ex:
# Right now I only know of this happening when fish is in WSL.
# That's not meant to be supported, so keep the error quiet
print("Error: Couldn't run {}, system reports '{}'".format(command, ex))

return (out,err)

0 comments on commit c597743

Please sign in to comment.