Skip to content

Commit

Permalink
fix: better error when DARTIUM_BIN not set
Browse files Browse the repository at this point in the history
Now Karma will throw:
  No binary for Dartium browser on your platform.
  Please, set "DARTIUM_BIN" env variable.

Instead of [TypeError: Cannot read property 'darwin' of undefined]
  • Loading branch information
vojtajina committed Sep 30, 2014
1 parent c6dbcbd commit 27462e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -90,7 +90,7 @@ var DartiumBrowser = function(baseBrowserDecorator, args) {

DartiumBrowser.prototype = {
name: 'Dartium',

DEFAULT_CMD: {},
ENV_CMD: 'DARTIUM_BIN'
};

Expand Down

1 comment on commit 27462e8

@Krinkle
Copy link
Contributor

@Krinkle Krinkle commented on 27462e8 Oct 7, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #25.

Please sign in to comment.