Closed MattCheely closed 7 years ago
Any chance of this merging?
@MattCheely Woah sorry, I just noticed this PR. Strangely I didn't get notified about it at all, it seems you have to watch a repo to be notified?
In any case, this looks good - going to merge. Thanks!
When trying to import a module that doesn't exist, elm-make returns an error that doesn't contain a path. That caused the regex exec to return null, and destructuring to fail. At that point the plugin throws an exception, and the actual root cause is masked. This prevents that failure mode, allowing the message to display unaltered if the path regex doesn't match.