Add option to show error and fix cut off for docs