Sample script: fix raise TypeError in error_log

seems like written in error_log:
no implicit conversion of String into Integer (TypeError)
Merge pull request #59 from ksss/fix-sample

Sample script: fix raise TypeError in error_log