Skip to content

timestamptz precision error message has typo "timestampz" (missing "t") #1295

@haskiindahouse

Description

@haskiindahouse

Summary

The error message thrown when timestamptz(p) is given an out-of-range precision misspells the type name as timestampz — missing the t before z. All other temporal codec messages in the same file (time, timetz, timestamp, interval) are spelled correctly.

Reproducer

import skunk.codec.temporal._

try timestamptz(7)  // valid range is 0-6
catch case e: IllegalArgumentException =>
  println(e.getMessage)
  // timestampz(7): invalid precision, expected 0-6

Source

throw new IllegalArgumentException(s"timestampz($precision): invalid precision, expected 0-6")

throw new IllegalArgumentException(s"timestampz($precision): invalid precision, expected 0-6")

One-character fix. Happy to PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions