Skip to content

Commit

Permalink
fix failing travis ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
fstab committed Feb 11, 2018
1 parent 31677d1 commit 1f0b437
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ before_install:
- |
set -e ;
set -x ;
if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then
# Workaround for broken OS X build, see https://github.com/travis-ci/travis-ci/issues/8703
unset -f cd ;
fi
case "$ONIG_VERSION" in
"DEFAULT")
if [[ "$TRAVIS_OS_NAME" == "osx" ]] ; then
Expand Down
2 changes: 1 addition & 1 deletion tailer/fileTailer.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func runFileTailer(path string, readall bool, failOnMissingFile bool, logger sim
closed: false,
}

file, abspath, err := openLogfile(path, readall, failOnMissingFile)
file, abspath, err := openLogfile(path, readall, failOnMissingFile) // file may be nil if failOnMissingFile is false and the file doesn't exist yet.
if err != nil {
go func(err error) {
writeError(errors, done, "failed to initialize file system watcher for %v: %v", path, err)
Expand Down

0 comments on commit 1f0b437

Please sign in to comment.