3 ms·
Because if in the next version of the library you decide that you want to return additional information along with the error, you will have to introduce a break
by DrJokepu 10y ago
Because if in the next version of the library you decide that you want to return additional information along with the error, you will have to introduce a breaking change (if you use error strings; returning error interfaces or the equivalents in other languages should be safe I suppose).