Print error message if `set` called outside app

Resolves #72
Merge pull request #73 from searls/patch-1

Print error message if `set` called outside app