Skip to content

Commit

Permalink
Updating error messages to be less verbose for invalid meta commands. (
Browse files Browse the repository at this point in the history
…#34)

* Update to fix broken tests.

* Update

* Updating error message to be less verbose.

* Update

Co-authored-by: Knut Olav Løite <koloite@gmail.com>
  • Loading branch information
Vizerai and olavloite authored Feb 11, 2022
1 parent 2ef7563 commit 56da0cb
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

package com.google.cloud.spanner.pgadapter.commands;

import java.text.MessageFormat;
import java.util.regex.Pattern;

/**
Expand All @@ -36,10 +35,6 @@ public Pattern getPattern() {

@Override
public String translate() {
throw new IllegalArgumentException(
MessageFormat.format(
"Unsupported Meta Command "
+ "(the following generated command is not compatible with PGAdapter): \n{0}",
this.sql));
throw new IllegalArgumentException("Unsupported Meta Command");
}
}

0 comments on commit 56da0cb

Please sign in to comment.