Fix: Convert error object to string