daroczig / logger

A lightweight, modern and flexible, log4j and futile.logger inspired logging utility for R
https://daroczig.github.io/logger
280 stars 41 forks source link

Fix typo in validate_log_level() #77

Closed tdeenes closed 3 years ago

tdeenes commented 3 years ago

Easy fix (typo): Changed stop('Invalid log level', ) to stop('Invalid log level') and updated the corresponding test for validate_log_level()

Current version:

> logger:::validate_log_level('FOOBAR')
Error in stop("Invalid log level", ) : 
  argument is missing, with no default

After PR:

> logger:::validate_log_level('FOOBAR')
Error in logger:::validate_log_level("FOOBAR") : Invalid log level