Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Prepping to merge branches

  • Loading branch information...
commit 3a293f6981c4cfa033ad233f5f83ab3e90d1d9c5 1 parent 2e3e0f9
@davglass davglass authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/node-yui3.js
View
6 lib/node-yui3.js
@@ -152,8 +152,10 @@ YUI.GlobalConfig = {
break;
}
- if (str && str.indexOf("\n") !== -1) {
- str = "\n" + str;
+ if (typeof str === 'string') {
+ if (str && str.indexOf("\n") !== -1) {
+ str = "\n" + str;
+ }
}
// output log messages to stderr
Please sign in to comment.
Something went wrong with that request. Please try again.