8000 Print to stderr. · devandroid/chruby@b8f1f18 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b8f1f18

Browse files
committed
Print to stderr.
1 parent 97d8ee1 commit b8f1f18

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

share/chruby/chruby.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function chruby()
7171
fi
7272
done
7373
74-
echo "Unknown Ruby: $1"
74+
echo "Unknown Ruby: $1" >&2
7575
return 1
7676
;;
7777
esac

test/chruby_test.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,11 @@ function test_chruby_system()
2222
assertNull "did not reset the Ruby" "$RUBY"
2323
}
2424

25+
function test_chruby_unknown()
26+
{
27+
chruby "foo" 2>/dev/null
28+
29+
assertEquals "did not return 1" $? 1
30+
}
31+
2532
SHUNIT_PARENT=$0 . /usr/share/shunit2/shunit2

0 commit comments

Comments
 (0)
0