Use String(e) instead of e.toString(), make the watch error test asynchronous.