Use tuples as return values for providing error info