Better error message as per @JoshVarty's comment