Fix scope in print error message
Merge pull request #615 from camptocamp/print-error-msg

Fix scope in print error message