error handling for authorization of bookmarklets