Use warn() instead of error()

Also, tested: denied localstorage bails out correctly.