Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

invalid trim mode " -" #8

Open
NielsKSchjoedt opened this issue Sep 22, 2014 · 1 comment
Open

invalid trim mode " -" #8

NielsKSchjoedt opened this issue Sep 22, 2014 · 1 comment

Comments

@NielsKSchjoedt
Copy link

Getting the following error, even when the file is empty:

config/recipes/templates/sidekiq/worker.yml.erb:
invalid trim mode " -"
erb [switches] [inputfile]
  -x               print ruby script
  -n               print ruby script with line number
  -v               enable verbose mode
  -d               set $DEBUG to true
  -r library       load a library
  -S safe_level    set $SAFE (0..4)
  -E ex[:in]       set default external/internal encodings
  -U               set default encoding to UTF-8.
  -T trim_mode     specify trim_mode (0..2, -)
  -P               ignore lines which start with "%"
@NielsKSchjoedt
Copy link
Author

Additionally the setting the git config --bool hooks.skip-erb-files true gives me:

.git/hooks/pre-commit:50:in `block in <main>': unexpected return (LocalJumpError)
    from .git/hooks/pre-commit:46:in `each'
    from .git/hooks/pre-commit:46:in `<main>'
 (1)

I think return should be changed to next

@bauruine bauruine mentioned this issue Nov 24, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant