Print error message if `set` called outside app

Resolves #72