diff options
author | Eugene Tarassov | 2019-06-20 18:33:20 +0000 |
---|---|---|
committer | Eugene Tarassov | 2019-06-20 18:33:20 +0000 |
commit | a9813ab44d41abfdb8fb3d90d5b76785bedc4380 (patch) | |
tree | e57cc456340502814a680ac6b7ebdd6586c71b69 /plugins/org.eclipse.tcf.core | |
parent | 01ce4ab58a3a62dfc5682b151ff3eb9dc01c7347 (diff) | |
download | org.eclipse.tcf-a9813ab44d41abfdb8fb3d90d5b76785bedc4380.tar.gz org.eclipse.tcf-a9813ab44d41abfdb8fb3d90d5b76785bedc4380.tar.xz org.eclipse.tcf-a9813ab44d41abfdb8fb3d90d5b76785bedc4380.zip |
TCF Core: better reporting of invalid escape sequence in TCF channel
Diffstat (limited to 'plugins/org.eclipse.tcf.core')
-rw-r--r-- | plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/StreamChannel.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/StreamChannel.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/StreamChannel.java index c527b0163..15f52edf1 100644 --- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/StreamChannel.java +++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/StreamChannel.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2015 Wind River Systems, Inc. and others. + * Copyright (c) 2007-2019 Wind River Systems, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -114,8 +114,7 @@ public abstract class StreamChannel extends AbstractChannel { } break; default: - if (n < 0) return EOS; - assert false; + throw new IOException("Invalid escape sequence: " + ESC + " " + n); } } } |