Fixed error message for wrong 'local' [Closes #24]