Skip to content

Commit

Permalink
Merge pull request #8 from tricknotes/error-message
Browse files Browse the repository at this point in the history
Add reason to error message
  • Loading branch information
Rich-Harris committed Mar 9, 2015
2 parents 7dee9ae + 5bdb020 commit a562439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/btoa.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if ( typeof window !== 'undefined' && typeof window.btoa === 'function' ) {
return new Buffer( str ).toString( 'base64' );
};
} else {
throw new Error( 'Unsupported environment' );
throw new Error( 'Unsupported environment: `window.btoa` or `Buffer` should be supported.' );
}

export default _btoa;

0 comments on commit a562439

Please sign in to comment.